Compare commits
No commits in common. "271dc6fc6fdc185c49aa6f9a7864d4ba320c4d0c" and "f5f93ae0c86e547af1cfad4e358ee3254b66174d" have entirely different histories.
271dc6fc6f
...
f5f93ae0c8
1 changed files with 9 additions and 1 deletions
|
@ -333,10 +333,18 @@ if [ -z "$VIRTUALIZATION" ]; then
|
||||||
udevadm control --exit
|
udevadm control --exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
msg "Sending TERM signal to processes..."
|
||||||
|
pkill --inverse -s0,1 -TERM
|
||||||
|
sleep 1
|
||||||
|
msg "Sending KILL signal to processes..."
|
||||||
|
pkill --inverse -s0,1 -KILL
|
||||||
|
|
||||||
if [ -z "$VIRTUALIZATION" ]; then
|
if [ -z "$VIRTUALIZATION" ]; then
|
||||||
msg "Unmounting filesystems, disabling swap..."
|
msg "Unmounting filesystems, disabling swap..."
|
||||||
swapoff -a
|
swapoff -a
|
||||||
umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs
|
umount -r -a -t nosysfs,noproc,nodevtmpfs,notmpfs
|
||||||
|
msg "Remounting rootfs read-only..."
|
||||||
|
mount -o remount,ro /
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
@ -352,7 +360,7 @@ if [ -z "$VIRTUALIZATION" ]; then
|
||||||
fi
|
fi
|
||||||
]])
|
]])
|
||||||
|
|
||||||
add_packages({ "runit", "eudev" })
|
add_packages({ "runit", "procps", "eudev" })
|
||||||
modules.runit.add_service("getty-tty1", [[#!/bin/sh
|
modules.runit.add_service("getty-tty1", [[#!/bin/sh
|
||||||
exec chpst -P getty 38400 tty1 linux]])
|
exec chpst -P getty 38400 tty1 linux]])
|
||||||
modules.runit.add_service("getty-tty2", [[#!/bin/sh
|
modules.runit.add_service("getty-tty2", [[#!/bin/sh
|
||||||
|
|
Loading…
Reference in a new issue