@@ -15,30 +15,27 @@ target=${target:?}
1515# shellcheck source=/dev/null
1616. " $GRML_LIVE_CONFIG "
1717
18- systemd_setup () {
19- fcopy -M -i -B -v -r /etc/systemd
18+ fcopy -M -i -B -v -r /etc/systemd
2019
21- echo " Enabling user '$USERNAME ' for autologin"
22- sed -i " s/\$ USERNAME/$USERNAME /" " $target " /etc/systemd/system/getty@tty* .service.d/override.conf
20+ echo " Enabling user '$USERNAME ' for autologin"
21+ sed -i " s/\$ USERNAME/$USERNAME /" " $target " /etc/systemd/system/getty@tty* .service.d/override.conf
2322
24- # workaround for #992847 to workaround /lib/systemd -> /usr/lib/systemd transition
25- $ROOTCMD rm -f /etc/systemd/system/syslog.service
23+ # workaround for #992847 to workaround /lib/systemd -> /usr/lib/systemd transition
24+ $ROOTCMD rm -f /etc/systemd/system/syslog.service
2625
27- $ROOTCMD systemctl preset-all
28- $ROOTCMD systemctl set-default grml-boot.target
26+ $ROOTCMD systemctl preset-all
27+ $ROOTCMD systemctl set-default grml-boot.target
2928
30- # ldconfig.service updates the dynamic linker cache. This is not really
31- # useful on a live OS image, where the installed packages do not change
32- # on startup. As this is quite costly, disable it.
33- $ROOTCMD systemctl mask ldconfig.service
29+ # ldconfig.service updates the dynamic linker cache. This is not really
30+ # useful on a live OS image, where the installed packages do not change
31+ # on startup. As this is quite costly, disable it.
32+ $ROOTCMD systemctl mask ldconfig.service
3433
35- # systemd-journal-catalog-update.service updates the journald catalog
36- # cache. Do this once here, and not on each live OS image boot.
37- $ROOTCMD systemctl mask systemd-journal-catalog-update.service
38- $ROOTCMD journalctl --update-catalog
39- }
40-
41- systemd_setup
34+ # systemd-journal-catalog-update.service updates the journald catalog
35+ # cache. Do this once here, and not on each live OS image boot.
36+ $ROOTCMD systemctl mask systemd-journal-catalog-update.service
37+ # Ignore errors as systemd upstream does not support containers: https://github.com/systemd/systemd/issues/38632
38+ $ROOTCMD journalctl --update-catalog || true
4239
4340# # END OF FILE #################################################################
4441# vim:ft=sh expandtab ai tw=80 tabstop=4 shiftwidth=2
0 commit comments