From: Ralph Ronnquist Date: Sun, 28 Jan 2024 22:11:06 +0000 (+1100) Subject: Add bind-mount for /etc/adjtime to make subhost use host clock without ado X-Git-Tag: 1.1 X-Git-Url: https://git.rrq.au/?a=commitdiff_plain;h=ad2e7bd3fa2db91c50aef9c6b603ca215ad76c4b;p=rrq%2Foverlay-boot.git Add bind-mount for /etc/adjtime to make subhost use host clock without ado --- diff --git a/overlay-postmount b/overlay-postmount index e8f32ac..a808054 100755 --- a/overlay-postmount +++ b/overlay-postmount @@ -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