<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://gentoo-zh.org/extern.php?action=feed&amp;tid=602&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Gentoo-zh / systemd-usrmerge]]></title>
		<link>http://www.gentoo-zh.org/viewtopic.php?id=602</link>
		<description><![CDATA[systemd-usrmerge 最近发表的帖子。]]></description>
		<lastBuildDate>Mon, 05 Dec 2022 08:56:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[systemd-usrmerge]]></title>
			<link>http://www.gentoo-zh.org/viewtopic.php?pid=643#p643</link>
			<description><![CDATA[<p>2022-12-01-systemd-usrmerge<br />&#160; Title&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;/usr merge for systemd users<br />&#160; Author&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; Mike Gilbert &lt;floppym@gentoo.org&gt;<br />&#160; Posted&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 2022-12-01<br />&#160; Revision&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 2</p><p>In the latter half of 2023, systemd will drop support for split-usr/unmerged-usr systems [1]. All Gentoo systems running systemd will need to be migrated to merged-usr.<br />在2023年下半年，systemd将会放弃对于split-usr/unmerged-usr系统的支持[1]。所有使用systemd的Gentoo系统需要切换到merged-usr。</p><p>Migrating to merged-usr will move all data from /bin, /sbin, and /lib into the /usr/bin and /usr/lib directories. The directories in / are replaced with symlinks.<br />切换到merged-usr会把所有/bin、/sbin和/lib目录下的文件移动到/usr/bin和/usr/lib下。这些/里的目录会被符号链接代替。</p><p>To facilitate this, a new set of sub-profiles has been created, and a script is available to perform the actual migration.<br />我们为此创建了一套新的子profiles和一个用于执行真正迁移任务的脚本。</p><p>To migrate a system to merged-usr, follow this procedure:<br />请通过以下步骤将系统迁移成merged-usr。</p><p>1. Ensure your system backups are up to date.<br />1. 确保你的系统备份了。</p><p>2. Install sys-apps/merge-usr.<br />2. 下载sys-apps/merge-usr。</p><p>3. Run the merge-usr script. The --dryrun option may be used to check for error conditions before running the script for real.<br />3. 运行脚本merge-usr。--dryrun选项可以用来在实际执行前检查可能的错误情况。</p><p>4. Switch to a merged-usr profile.<br />4. 切换到merged-usr profile。</p><p>&#160; &#160; &#160;eg. eselect profile set default/linux/amd64/17.1/systemd/merged-usr<br />&#160; &#160; &#160;比如，运行命令：eselect profile set default/linux/amd64/17.1/systemd/merged-usr</p><p>5. Run emerge with the --newuse or --changed-use option to rebuild any packages that have a &quot;split-usr&quot; USE flag.<br />5. 使用--newuse或--changed-use选项运行emerge，以重建所有具有&quot;split-usr&quot;这个USE标记的软件包。</p><p>&#160; &#160; &#160;eg. emerge -uDN @world<br />&#160; &#160; &#160;比如，运行命令：emerge -uDN @world</p><p>For new installs, new &quot;mergedusr&quot; stage3 tarballs are being produced for commonly used profiles.<br />对于新的下载，已为常用的profiles提供了新的stage3压缩包&quot;mergedusr&quot;。</p><p>[1] <a href="https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html" rel="nofollow">https://lists.freedesktop.org/archives/ … 48352.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (batsom)]]></author>
			<pubDate>Mon, 05 Dec 2022 08:56:25 +0000</pubDate>
			<guid>http://www.gentoo-zh.org/viewtopic.php?pid=643#p643</guid>
		</item>
	</channel>
</rss>
