From a2f8446c930ae3a1d8288bef96ad50b44c916aba Mon Sep 17 00:00:00 2001 From: Xavier Petit <32063953+xpetit@users.noreply.github.com> Date: Thu, 12 Sep 2019 12:32:19 +0100 Subject: [PATCH] Move overlayroot lower --- scripts/install_client.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/install_client.sh b/scripts/install_client.sh index 36dd4d3b0..7bd0eddb5 100755 --- a/scripts/install_client.sh +++ b/scripts/install_client.sh @@ -81,11 +81,6 @@ if test -v OVERWRITE; then ' fi -sed -i -e "s|::DISK::|$DISK|g" etc/udev/rules.d/10-local.rules - -apt-get -y install overlayroot -echo overlayroot=\"device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0\" >> /etc/overlayroot.conf - # Fix permissions find . -type d -exec chmod 755 {} \; find . -type f -exec chmod 644 {} \; @@ -96,6 +91,11 @@ cp --preserve=mode -RT . / cd $SCRIPT_DIR rm -rf /tmp/system +sed -i -e "s|::DISK::|$DISK|g" etc/udev/rules.d/10-local.rules + +apt-get -y install overlayroot +echo overlayroot=\"device:dev=/dev/disk/by-partlabel/01-tmp-system,recurse=0\" >> /etc/overlayroot.conf + update-initramfs -u # Remove root & user password