Skip to content

Commit 29fd3eb

Browse files
committed
disk-image-{minimal,mfs-root}: Run /etc/rc.local at boot if present
Useful for running benchmarks without having to copy and modify the entire rc script.
1 parent dad877b commit 29fd3eb

File tree

1 file changed

+3
-0
lines changed
  • pycheribuild/files/minimal-image/etc

1 file changed

+3
-0
lines changed

pycheribuild/files/minimal-image/etc/rc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,9 @@ else
9494
/usr/sbin/sshd
9595
fi
9696

97+
if [ -f /etc/rc.local ]; then
98+
. /etc/rc.local
99+
fi
97100

98101
echo "Logging in as root..."
99102
/usr/bin/login -f root

0 commit comments

Comments
 (0)