puppy on systemd (experiment)
Posted: Sun 05 Jan 2020, 04:07
This thread will trigger controversy due to init wars. I will just share my thoughts here.
I tried to run systemd on puppy. I used TazPuppy since systemd is available on their repo.
So we know already that sysvinit and systemd are not compatible. So I made a radical approach, I tried to made systemd work like sysvinit. This is how I did
1. Modify rc.sysinit script. move mounting /dev /sys /proc /run and tmpfs folders on /sbin/init. Disable starting udevd and dbus on the script
2. Create systemd folders in /run
3. Create a service file in /usr/lib/systemd/system/multi-user.target.wants. This service will trigger rc.sysinit script after sysinit.target before getty.service
4. Create dbus.service file /usr/lib/systemd/system/multi-user.target.wants
It successfully works. However its requires sudo to shutdown and reboot using systemctl command, rc.shutdown are not yet working, and sound doesn't work on systemd while on sysvinit works. I tried to figured it out how to run rc.shutdown upon shutdown right before umounting all filesystem
I tried to run systemd on puppy. I used TazPuppy since systemd is available on their repo.
So we know already that sysvinit and systemd are not compatible. So I made a radical approach, I tried to made systemd work like sysvinit. This is how I did
1. Modify rc.sysinit script. move mounting /dev /sys /proc /run and tmpfs folders on /sbin/init. Disable starting udevd and dbus on the script
2. Create systemd folders in /run
3. Create a service file in /usr/lib/systemd/system/multi-user.target.wants. This service will trigger rc.sysinit script after sysinit.target before getty.service
4. Create dbus.service file /usr/lib/systemd/system/multi-user.target.wants
It successfully works. However its requires sudo to shutdown and reboot using systemctl command, rc.shutdown are not yet working, and sound doesn't work on systemd while on sysvinit works. I tried to figured it out how to run rc.shutdown upon shutdown right before umounting all filesystem