diff options
Diffstat (limited to 'bin/first_stage.sh')
-rw-r--r-- | bin/first_stage.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/first_stage.sh b/bin/first_stage.sh index a3a3240..5981cd9 100644 --- a/bin/first_stage.sh +++ b/bin/first_stage.sh @@ -34,9 +34,9 @@ CONFIG_FILE_PATH=$4 mkdir $(dirname "$CONFIG_FILE_PATH") touch $CONFIG_FILE_PATH python $2/bin/write_config.py $CONFIG_FILE_PATH -disk=$(python $2/bin/get_config_string.py $CONFIG_FILE_PATH "disk") +disk=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "disk") disk_path=/dev/$disk -hostname=$(python $2/bin/get_config_string.py $CONFIG_FILE_PATH "hostname") +hostname=$(python $REPOSITORY_PATH/bin/get_config_string.py $CONFIG_FILE_PATH "hostname") echo "All data on disk '$disk' will be finally lost!" @@ -137,7 +137,7 @@ echo "" # Launch second stage in chroot echo "bash $REPOSITORY_PATH/bin/second_stage.sh $hostname \ -${disk_path}1 $REPOSITORY_PATH" | arch-chroot /mnt +${disk_path}1 $REPOSITORY_PATH $CONFIG_FILE_PATH" | arch-chroot /mnt # Copy log and config from live image to root partition |