Add bind-mount for /etc/adjtime to make subhost use host clock without ado master 1.1
authorRalph Ronnquist <rrq@rrq.au>
Sun, 28 Jan 2024 22:11:06 +0000 (09:11 +1100)
committerRalph Ronnquist <rrq@rrq.au>
Sun, 28 Jan 2024 22:11:06 +0000 (09:11 +1100)
overlay-postmount

index e8f32ac7e44010bbf5248ca6ac2c9a4c2d11afec..a8080549c6e1db16dd607af1fcf56465e22c00f2 100755 (executable)
@@ -37,5 +37,8 @@ if [ "$RAM_SIZE" != "none" ] ; then
     mount -t tmpfs -osize=$RAM_SIZE,mode=755 tmpfs $LIVE/run
 fi
 
-echo "Installing $OVERLAYDIR/reaper to $LIVE/.reaper"
+echo "bind-mount /etc/adjtime into subhost, if possible"
+mount --bind /etc/adjtime $LIVE/etc/adjtime || true
+
+echo "install $OVERLAYDIR/reaper to $LIVE/.reaper"
 cp -p $OVERLAYDIR/reaper $LIVE/.reaper