Skip to content

Commit df58001

Browse files
ericonrahesford
authored andcommitted
1: only create /run/runit directory.
The 100 permission in /run/runit/stopit made it so that signaling runit with SIGCONT would shut the system down. To achieve the correct behavior, we should create the stopit and reboot files with 000 perms, and allow their permissions to be set correctly by calls to `init 0` or `init 6` or by /etc/runit/ctrlaltdel. 1
1 parent 6379c5f commit df58001

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ msg "Welcome to Void!"
1212
# Start core services: one-time system tasks.
1313
detect_virt
1414
for f in /etc/runit/core-services/*.sh; do
15-
[ -r $f ] && . $f
15+
[ -r $f ] && . $f
1616
done
1717

1818
dmesg >/var/log/dmesg.log
@@ -22,7 +22,9 @@ else
2222
chmod 0644 /var/log/dmesg.log
2323
fi
2424

25+
# create files for controlling runit
2526
mkdir -p /run/runit
26-
install -m100 /dev/null /run/runit/stopit
27+
install -m000 /dev/null /run/runit/stopit
28+
install -m000 /dev/null /run/runit/reboot
2729

2830
msg "Initialization complete, running stage 2..."

0 commit comments

Comments
 (0)