Add double quotes to DISK=$DISK
Without the double quotes, the $DISK variable expands and will not handle multi-disk correctly. Co-authored-by: @baberlevi Signed-off-by: Maurice Zhou <ja@apvc.uk>
This commit is contained in:
committed by
George Melikov
parent
233952e4e7
commit
68eebfd5df
@@ -157,7 +157,7 @@ System Installation
|
|||||||
m='/dev /proc /sys'
|
m='/dev /proc /sys'
|
||||||
for i in $m; do mount --rbind $i /mnt/$i; done
|
for i in $m; do mount --rbind $i /mnt/$i; done
|
||||||
|
|
||||||
chroot /mnt /usr/bin/env DISK=$DISK sh
|
chroot /mnt /usr/bin/env DISK="$DISK" sh
|
||||||
|
|
||||||
#. Rebuild initrd::
|
#. Rebuild initrd::
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ System Configuration
|
|||||||
#. Chroot::
|
#. Chroot::
|
||||||
|
|
||||||
history -w /mnt/home/sys-install-pre-chroot.txt
|
history -w /mnt/home/sys-install-pre-chroot.txt
|
||||||
arch-chroot /mnt /usr/bin/env DISK=$DISK bash
|
arch-chroot /mnt /usr/bin/env DISK="$DISK" bash
|
||||||
|
|
||||||
#. Generate locales::
|
#. Generate locales::
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ System Configuration
|
|||||||
for i in $m; do mount --rbind $i /mnt/$i; done
|
for i in $m; do mount --rbind $i /mnt/$i; done
|
||||||
|
|
||||||
history -w /mnt/home/sys-install-pre-chroot.txt
|
history -w /mnt/home/sys-install-pre-chroot.txt
|
||||||
chroot /mnt /usr/bin/env DISK=$DISK bash --login
|
chroot /mnt /usr/bin/env DISK="$DISK" bash --login
|
||||||
|
|
||||||
#. For SELinux, relabel filesystem on reboot::
|
#. For SELinux, relabel filesystem on reboot::
|
||||||
|
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ System Configuration
|
|||||||
for i in $m; do mount --rbind $i /mnt/$i; done
|
for i in $m; do mount --rbind $i /mnt/$i; done
|
||||||
|
|
||||||
history -w /mnt/home/sys-install-pre-chroot.txt
|
history -w /mnt/home/sys-install-pre-chroot.txt
|
||||||
chroot /mnt /usr/bin/env DISK=$DISK bash --login
|
chroot /mnt /usr/bin/env DISK="$DISK" bash --login
|
||||||
|
|
||||||
#. For SELinux, relabel filesystem on reboot::
|
#. For SELinux, relabel filesystem on reboot::
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user