From ad2e7bd3fa2db91c50aef9c6b603ca215ad76c4b Mon Sep 17 00:00:00 2001 From: Ralph Ronnquist Date: Mon, 29 Jan 2024 09:11:06 +1100 Subject: [PATCH] Add bind-mount for /etc/adjtime to make subhost use host clock without ado --- overlay-postmount | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2