Compare commits

...

3 commits

Author SHA1 Message Date
Tobias Powalowski
f2645b6f6e disable/mask mqueue and hugetablefs 2023-06-26 21:53:41 +02:00
Tobias Powalowski
bda3b95891 disable/mask mqueue and hugetablefs 2023-06-26 21:27:57 +02:00
Tobias Powalowski
f1a6f2e6d7 disable proc-sys-fs-binfmt_misc.automount 2023-06-26 21:05:37 +02:00

View file

@ -139,8 +139,8 @@ build ()
add_file "/usr/share/archboot/base/etc/systemd/system/serial-getty@.service" "/etc/systemd/system/serial-getty@.service"
add_file "/usr/share/archboot/base/etc/systemd/system/systemd-sysusers.service" "/etc/systemd/system/systemd-sysusers.service"
### disable systemd mounts:
# disable configfs, debugfs, fuse and tracefs
for i in sys-kernel-debug sys-kernel-tracing sys-kernel-config sys-fs-fuse-connections tmp; do
# disable configfs, debugfs, fuse, hugepages, mqueue and tracefs
for i in dev-mqueue dev-hugepages sys-kernel-debug sys-kernel-tracing sys-kernel-config sys-fs-fuse-connections tmp; do
add_symlink "/etc/systemd/system/${i}.mount" "/dev/null"
done
### disable systemd targets:
@ -154,6 +154,9 @@ build ()
for i in hwdb-update firstboot machine-id-commit pcrmachine binfmt boot-random-seed repart pcrphase pcrphase-sysinit; do
add_symlink "/etc/systemd/system/systemd-${i}.service" "/dev/null"
done
### disable autonount:
# proc-sys-fs-binfmt_misc.automount
add_symlink "/etc/systemd/system/proc-sys-fs-binfmt_misc.automount" "/dev/null"
# remove multi-user.target.wants
rm -rf ${BUILDROOT}/etc/systemd/system/multi-user.target.wants
# disable lastlog