Accepting request 830813 from home:fbui:systemd:openSUSE-Factory
Update the comment for the workaround dealing with tmp.mount dangling symlink. OBS-URL: https://build.opensuse.org/request/show/830813 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=1112
This commit is contained in:
parent
b614751e6f
commit
5b9c36b40b
@ -864,9 +864,18 @@ fi
|
||||
# It's run only once.
|
||||
%{_prefix}/lib/systemd/scripts/migrate-sysconfig-i18n.sh || :
|
||||
|
||||
# Previous versions had tmp.mount moved to /usr/share/systemd/tmp.mount.
|
||||
# It could be symlinked into /etc to make /tmp a tmpfs. The file does not exist anymore,
|
||||
# so migrate the link to the new location.
|
||||
# During the migration to tmpfs for /tmp, a bug was introduced that
|
||||
# affected users using tmpfs for /tmp and happened during the _second_
|
||||
# update following the one that introduced tmpfs on /tmp. It consisted
|
||||
# in creating a dangling symlink /etc/systemd/system/tmp.mount
|
||||
# pointing to the old copy that previous versions shipped in
|
||||
# /usr/share/systemd, which doesn't exist anymore. So we migrate the
|
||||
# link to the new location.
|
||||
#
|
||||
# Users have been exposed to this bug during a short period of time as
|
||||
# it was present only in one release and was fixed shortly after by
|
||||
# the next update. So we can assume that it's safe to drop it in 6
|
||||
# months (ie March 2021).
|
||||
if [ "$(readlink -f %{_sysconfdir}/systemd/system/tmp.mount)" = "%{_datadir}/systemd/tmp.mount" ] ; then
|
||||
ln -sf %{_unitdir}/tmp.mount %{_sysconfdir}/systemd/system/tmp.mount
|
||||
fi
|
||||
@ -883,7 +892,7 @@ fi
|
||||
# old systems, the file doesn't exist. This is equivalent to
|
||||
# generation #1, which enables the creation of all compat symlinks.
|
||||
if [ $1 -eq 1 ]; then
|
||||
echo "COMPAT_SYMLINK_GENERATION=2">/usr/lib/udev/compat-symlink-generation
|
||||
echo "COMPAT_SYMLINK_GENERATION=2" >/usr/lib/udev/compat-symlink-generation
|
||||
fi
|
||||
|
||||
%post -n udev%{?mini}
|
||||
|
17
systemd.spec
17
systemd.spec
@ -862,9 +862,18 @@ fi
|
||||
# It's run only once.
|
||||
%{_prefix}/lib/systemd/scripts/migrate-sysconfig-i18n.sh || :
|
||||
|
||||
# Previous versions had tmp.mount moved to /usr/share/systemd/tmp.mount.
|
||||
# It could be symlinked into /etc to make /tmp a tmpfs. The file does not exist anymore,
|
||||
# so migrate the link to the new location.
|
||||
# During the migration to tmpfs for /tmp, a bug was introduced that
|
||||
# affected users using tmpfs for /tmp and happened during the _second_
|
||||
# update following the one that introduced tmpfs on /tmp. It consisted
|
||||
# in creating a dangling symlink /etc/systemd/system/tmp.mount
|
||||
# pointing to the old copy that previous versions shipped in
|
||||
# /usr/share/systemd, which doesn't exist anymore. So we migrate the
|
||||
# link to the new location.
|
||||
#
|
||||
# Users have been exposed to this bug during a short period of time as
|
||||
# it was present only in one release and was fixed shortly after by
|
||||
# the next update. So we can assume that it's safe to drop it in 6
|
||||
# months (ie March 2021).
|
||||
if [ "$(readlink -f %{_sysconfdir}/systemd/system/tmp.mount)" = "%{_datadir}/systemd/tmp.mount" ] ; then
|
||||
ln -sf %{_unitdir}/tmp.mount %{_sysconfdir}/systemd/system/tmp.mount
|
||||
fi
|
||||
@ -881,7 +890,7 @@ fi
|
||||
# old systems, the file doesn't exist. This is equivalent to
|
||||
# generation #1, which enables the creation of all compat symlinks.
|
||||
if [ $1 -eq 1 ]; then
|
||||
echo "COMPAT_SYMLINK_GENERATION=2">/usr/lib/udev/compat-symlink-generation
|
||||
echo "COMPAT_SYMLINK_GENERATION=2" >/usr/lib/udev/compat-symlink-generation
|
||||
fi
|
||||
|
||||
%post -n udev%{?mini}
|
||||
|
Loading…
Reference in New Issue
Block a user