add bsod to init

This commit is contained in:
Tobias Powalowski 2023-11-18 18:24:02 +01:00
parent 3d73d36c32
commit 20585a9952

View file

@ -8,14 +8,14 @@ _run ()
: > "${_ROOTFS}"/etc/initrd-release
_map _dir /mnt/{cdrom,ventoy,efi}
# systemd
_map _binary /usr/lib/systemd/systemd{,-battery-check,-executor,-journald,-shutdown,-sulogin-shell,-sysctl,-udevd}
_map _binary /usr/lib/systemd/systemd{,-battery-check,-executor,-bsod,-journald,-shutdown,-sulogin-shell,-sysctl,-udevd}
_map _file /usr/lib/systemd/{lib*,system-generators/systemd-fstab-generator}
# only take services from systemd package
pacman -Sy &>"${_NO_LOG}"
_map _file $(pacman -Ql systemd | grep '/usr/lib/systemd/system/.' | cut -d ' ' -f2)
_map _file /usr/lib/sysusers.d/{arch,basic}.conf
# disable systemd services:
for i in lvm2-{lvmpolld,monitor} systemd-{boot,-bsod,-pcrphase-initrd,random-seed,sysusers\
for i in lvm2-{lvmpolld,monitor} systemd-{boot,random-seed,sysusers\
,update-{done,utmp},vconsole-setup}; do
_symlink "/etc/systemd/system/${i}.service" /dev/null
done