infest/prepare: fix style inconsistencies
This commit is contained in:
parent
deb6764522
commit
2b8f836339
@ -143,10 +143,10 @@ prepare_common() {(
|
|||||||
mkdir -p /mnt/boot
|
mkdir -p /mnt/boot
|
||||||
|
|
||||||
if mount | grep -Fq ' on /boot type '; then
|
if mount | grep -Fq ' on /boot type '; then
|
||||||
bootdev=$(mount | grep " on /boot type " | sed 's/ .*//')
|
bootpart=$(mount | grep ' on /boot type ' | sed 's/ .*//')
|
||||||
mount $bootdev /mnt/boot
|
mount $bootpart /mnt/boot
|
||||||
else
|
else
|
||||||
mount --bind /boot/ /mnt/boot
|
mount --bind /boot /mnt/boot
|
||||||
fi
|
fi
|
||||||
|
|
||||||
fi
|
fi
|
||||||
@ -155,7 +155,7 @@ prepare_common() {(
|
|||||||
# prepare install directory
|
# prepare install directory
|
||||||
#
|
#
|
||||||
|
|
||||||
rootpart=$(mount | grep " on / type" | sed 's/ .*//')
|
rootpart=$(mount | grep ' on / type ' | sed 's/ .*//')
|
||||||
|
|
||||||
mkdir -p /mnt/etc/nixos
|
mkdir -p /mnt/etc/nixos
|
||||||
mkdir -m 0555 -p /mnt/var/empty
|
mkdir -m 0555 -p /mnt/var/empty
|
||||||
|
Loading…
Reference in New Issue
Block a user