diff --git a/systemd-mini.spec b/systemd-mini.spec index 406e052..0d07841 100644 --- a/systemd-mini.spec +++ b/systemd-mini.spec @@ -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} diff --git a/systemd.spec b/systemd.spec index 2d9078c..d39a85e 100644 --- a/systemd.spec +++ b/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}