fosslinux / live-bootstrap

Use of a Linux initramfs to fully automate the bootstrapping process
501 stars 35 forks source link

Fix panic due to after.sh prematurely quitting on shutdown #409

Closed Googulator closed 8 months ago

Googulator commented 8 months ago

The sysrq shutdown trigger takes some time to fully shut down the system, during which init is expected to continue running. Since after.sh is the last step in our init, if it quits before shutdown is complete, Linux will panic with "Attempted to kill init".

Add an infinite loop after shutdown is issued via sysrq to prevent this.