debian packaging
[rrq/overlay-boot.git] / functions
index 38e872558c63b0ff30a42a57d76f3817c719a2b4..feb500e4839a8fa8990450d7cd836b4d28e9379e 100644 (file)
--- a/functions
+++ b/functions
@@ -55,7 +55,7 @@ EOF
     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
@@ -100,7 +100,7 @@ setup_overlay() {
        umount "$ROOT/run"
        die "Cannot set up the overlay mount $2"
     fi
-    cp $REAPER $LIVE/.reaper
+    cp -p $REAPER $LIVE/.reaper
 }
 
 start_services() {