Skip to content

Clean up boot files: Remove SysV init scripts and deactivate systemd service units generators #122

Open
pmenzel opened this issue May 5, 2020 · 0 comments

Comments

@pmenzel
Copy link
Contributor

pmenzel commented May 5, 2020

Starting MarIuX with debug added to the Linux command line, systemd also prints out more debug messages showing some room for improvements.

[    4.530343] Run /init as init process
[    4.532188]   with arguments:
[    4.533824]     /init
[    4.535260]   with environment:
[    4.536944]     HOME=/
[    4.538392]     TERM=linux
[    4.539926]     BOOT_IMAGE=/boot/bzImage-5.7.0-rc4.mx64.333
[    4.542297]     crashkernel=256M
[    4.726715] XFS (sda1): Mounting V5 Filesystem
[    4.924101] XFS (sda1): Ending clean mount
[    5.893730] systemd[1]: Inserted module 'autofs4'
[    6.151949] NET: Registered protocol family 10
[    6.154270] Segment Routing with IPv6
[    6.175690] NET: Registered protocol family 1
[    6.177796] systemd[1]: Inserted module 'unix'
[    6.508744] systemd[1]: systemd 242 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT +GNU
TLS +ACL +XZ +LZ4 -SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
[    6.516560] systemd[1]: No virtualization found in DMI
[    6.518908] systemd[1]: No virtualization found in CPUID
[    6.521286] systemd[1]: Virtualization XEN not found, /proc/xen does not exist
[    6.524220] systemd[1]: This platform does not support /proc/device-tree
[    6.538969] systemd[1]: UML virtualization not found in /proc/cpuinfo.
[    6.541704] systemd[1]: This platform does not support /proc/sysinfo
[    6.544390] systemd[1]: Found VM virtualization none
[    6.546671] systemd[1]: Detected architecture x86-64.
[    6.557648] systemd[1]: Mounting cgroup to /sys/fs/cgroup/net_cls,net_prio of type cgroup with options net_cls,net_prio.
[    6.666061] systemd-bless-boot-generator[177]: Skipping generator, not booted with boot counting in effect.
[    6.670736] systemd-hibernate-resume-generator[182]: Not running in an initrd, quitting.
[    6.683233] systemd-rc-local-generator[183]: /etc/rc.local does not exist, skipping.
[    6.685485] systemd-rc-local-generator[183]: /usr/sbin/halt.local does not exist, skipping.
[    6.713611] systemd-fstab-generator[179]: Parsing /etc/fstab...
[    6.714041] systemd-gpt-auto-generator[181]: Failed to chase block device '/', ignoring: No such file or directory
[    6.718691] systemd-gpt-auto-generator[181]: sda1: Root device /dev/sda.
[    6.736056] systemd-fstab-generator[179]: Found entry what=/dev/disk/by-label/root where=/ type=xfs makefs=no growfs=no noauto=no nofail=no
[    6.826542] systemd-sysv-generator[186]: Cannot find unit edac.service.
[    6.858709] systemd-sysv-generator[186]: Cannot find unit safenetauthenticationclient.service.
[    6.882502] systemd-sysv-generator[186]: Ignoring S24portmap symlink in rc3.d, not generating portmap.service.
[    6.886367] systemd-sysv-generator[186]: Ignoring S15setclock symlink in rc3.d, not generating setclock.service.
[    6.890278] systemd-sysv-generator[186]: Ignoring S25amd symlink in rc3.d, not generating amd.service.
[    6.893938] systemd-sysv-generator[186]: Ignoring S07mountfs symlink in rc3.d, not generating mountfs.service.
[    6.897425] systemd-sysv-generator[186]: Ignoring S01kernfs symlink in rc3.d, not generating kernfs.service.
[    6.900604] systemd-sysv-generator[186]: Ignoring S12createfiles symlink in rc3.d, not generating createfiles.service.
[    6.904550] systemd-sysv-generator[186]: Ignoring S20sysklogd symlink in rc3.d, not generating sysklogd.service.
[    6.908473] systemd-sysv-generator[186]: Ignoring S11cleanfs symlink in rc3.d, not generating cleanfs.service.
[    6.964661] printk: systemd-sysv-ge: 6 output lines suppressed due to ratelimiting
[    7.447664] systemd-gpt-auto-generator[181]: No suitable partition table found, ignoring.

So, some SysV scripts can be removed from the system or bee packages, and some systemd generators can be deactivated (with a symbolic link to /dev/null in /etc/systemd/generators).

Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant