mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-04-05 09:10:16 +00:00
This moves most of the initialisation of containers to the service init in the `service` command. Still leaves remounting root file systems read only but this will go away shortly. Another step closer to removing shell scripts in base system. Signed-off-by: Justin Cormack <justin.cormack@docker.com>
15 lines
257 B
Bash
Executable File
15 lines
257 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# start service containers
|
|
|
|
if [ -d /containers/services ]
|
|
then
|
|
for f in $(find /containers/services -mindepth 1 -maxdepth 1 | sort)
|
|
do
|
|
/bin/mount --bind "$f/rootfs" "$f/rootfs"
|
|
mount -o remount,rw "$f/rootfs"
|
|
done
|
|
fi
|
|
|
|
service system-init
|