From 8c89dff2953b65c743c029d89f75c587dea9f4a4 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 11 May 2019 11:03:18 +0000 Subject: [PATCH] pass hardware setup to post-debootstrap-installer.sh for grub.sh call --- post-debootstrap-installer.sh | 2 +- setup.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/post-debootstrap-installer.sh b/post-debootstrap-installer.sh index 6f862cc..0d4bc15 100755 --- a/post-debootstrap-installer.sh +++ b/post-debootstrap-installer.sh @@ -27,7 +27,7 @@ cat /hardware-setup/authorized_keys/* > /etc/dropbear-initramfs/authorized_keys apt-get -y install linux-image-amd64 DEBIAN_FRONTEND=noninteractive apt-get -y install grub-pc -/hardware-setup/grub.sh +"/hardware-setup/hardware/$1/grub.sh" update-grub ### users diff --git a/setup.sh b/setup.sh index 9c26c04..d80eca0 100755 --- a/setup.sh +++ b/setup.sh @@ -48,6 +48,6 @@ echo "$2" > "$chroot/etc/hostname" mkdir "$chroot/hardware-setup" cp -a * "$chroot/hardware-setup" -chroot "$chroot" /hardware-setup/post-debootstrap-installer.sh +chroot "$chroot" /hardware-setup/post-debootstrap-installer.sh "$1" rm -r "$chroot/hardware-setup"