done
}
-REAPER=$(dirname $(realpath $0))/reaper/reaper
+REAPER=$(dirname $(realpath $0))/reaper
# (name live system root work)
# Set up an overlay fmr $name on $live, with a new tmpfs on its /run,
# and "install" a "reaper" as the upcoming pid 1
umount "$ROOT/run"
die "Cannot set up the overlay mount $2"
fi
- cp $REAPER $LIVE/.reaper
+ cp -p $REAPER $LIVE/.reaper
}
start_services() {
cat <<EOF | $CMD
set -x
mount -t proc proc /proc
+mount -t devpts devpts /dev/pts
+mount -t sysfs sysfs /sys
for srv in $START ; do service \$srv start ; done
exec /.reaper $NAME
EOF