====== Devuan vs Debian or SysV vs Systemd ======
I want to make a honest test to boot a Devuan with [[:sysv|SysV]] and Debian with Systemd.
===== The scenario =====
Devuan 1.0 and Debian 8.8, all updated to latest packages with netinstall.
Two virtual machines with 1 vCPU and 1G of RAM:
{{::shot-2017-05-26_17-26-34.jpg?400|}}
The partition schema:
{{::shot-2017-05-26_17-17-25.jpg?800|}}
Packages installed:
{{::shot-2017-05-26_17-25-01.jpg?800|}}
The login screen Debian at left:
{{::shot-2017-05-26_18-21-28.jpg?800|}}
Packages installed and space used, Debian at left:
{{::shot-2017-05-26_18-22-27.jpg?800|}}
As you can see Debian used more space than Devuan and installed one more package.
Status of one service, Debian at left:
{{::shot-2017-05-26_18-40-17.jpg?800|}}
I prefer the output of systemd, but can be confused if you want to get the state in one script. I want to try boot the virtual machines at same time, so I installed NTP, the problem is that always I get a difference of 1 or 2 seconds.
I programmed a crontab in the servers and stay quiet until they reboot, the problem always was that one reboot before than other.
{{::shot-2017-05-26_18-36-59.jpg?800|}}
So I made a trick.
==== The trick ====
I want to boot on time the servers... so I add this line to crontab:
09 17 * * * echo $(date) > /root/inicio && /sbin/reboot
I want to eliminate human factor and network latency, so I removed NTP and configure tty1 to auto login.
=== Devuan ===
Modify the file /etc/inittab and comment/change the line:
1:2345:respawn:/sbin/getty 115200 tty1
To:
1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1
=== Debian ===
Modify the file /etc/systemd/system/getty.service.wants/getty@tty1.service and comment/change the line:
ExecStart=-/usr/bin/agetty --noclear %I $TERM
To:
ExecStart=-/usr/bin/agetty --autologin root --noclear %I $TERM
Finally in boot operating systems edit /root/.bashrc and add this line:
echo $(date) > /root/fin
==== Results ====
Debian at left:
{{::shot-2017-05-26_19-11-58.jpg?800|}}
Devuan tooks 30 seconds to start, Debian only 16 seconds!
==== References ====
* https://wiki.archlinux.org/index.php/Getty
* https://askubuntu.com/questions/168706/how-do-i-auto-login-as-root-into-the-tty-upon-boot