From 3c30f5f34e4355300878f5344168ae34951c866a Mon Sep 17 00:00:00 2001 From: Attila Lendvai Date: Mon, 20 Nov 2023 23:01:54 +0100 Subject: [PATCH] disable the stage1.sh script when extroot is set up should fix #27. --- .../common/root/autoprovision-stage1.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/image-extras/common/root/autoprovision-stage1.sh b/image-extras/common/root/autoprovision-stage1.sh index d8d7fc2..f3438dc 100755 --- a/image-extras/common/root/autoprovision-stage1.sh +++ b/image-extras/common/root/autoprovision-stage1.sh @@ -115,9 +115,28 @@ EOF # ln -s /tmp state # cd - + disableStage1 + log "Finished setting up extroot" } +disableStage1() +{ + # FIXME it would be more future-proof to transform the rc.local file + # instead of overwriting it. + cat >/etc/rc.local <