From ee7d6a9b629b9bd673ff334eb0066eb895ce439e Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 12 Nov 2019 21:10:56 +0100 Subject: Fixed bug related to hard-coded repository path. --- bin/first_stage.sh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'bin/first_stage.sh') diff --git a/bin/first_stage.sh b/bin/first_stage.sh index 4db34fa..15db09c 100644 --- a/bin/first_stage.sh +++ b/bin/first_stage.sh @@ -154,6 +154,11 @@ sleep $DELAY echo "" +# Copy repository from live image to root partition + +cp -r $REPOSITORY_PATH /mnt$REPOSITORY_PATH + + # Install basic Packages echo "Going to install basic packages ..." @@ -176,12 +181,11 @@ echo "" # Launch second stage in chroot -echo "bash /opt/archinstall.git/bin/second_stage.sh $hostname ${disk_path}1" | arch-chroot /mnt +echo "bash $REPOSITORY_PATH/bin/second_stage.sh $hostname ${disk_path}1 $REPOSITORY_PATH" | arch-chroot /mnt -# Copy files from live image to root partition +# Copy log from live image to root partition -cp -r $REPOSITORY_PATH /mnt$REPOSITORY_PATH cp $LOG_FILE_PATH /mnt$LOG_FILE_PATH -- cgit v1.2.3-70-g09d2