Fix issues with parted
This commit is contained in:
parent
f66338305d
commit
0ceebb97d9
1 changed files with 11 additions and 11 deletions
|
@ -55,21 +55,21 @@ function prepare_disk() {
|
|||
fi
|
||||
|
||||
if [[ "$ENCRYPTION" ]]; then
|
||||
${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \
|
||||
mklabel gpt \
|
||||
mkpart primary 1MiB 100MiB \
|
||||
mkpart primary 100MiB 2048MiB \
|
||||
mkpart primary 2148MiB -2048s \
|
||||
set 1 esp
|
||||
${cmd} parted --script --align=optimal -- "$RootDisk" \
|
||||
mklabel gpt \
|
||||
mkpart primary 1MiB 100MiB \
|
||||
mkpart primary 100MiB 2048MiB \
|
||||
mkpart primary 2148MiB -2048s \
|
||||
set 1 esp
|
||||
#mkfs.vfat -F 32 -n "EFI" "$RootPart"
|
||||
#mkfs.ext4 -L "Boot" -m 0 "$EFIPart"
|
||||
#mkfs.btrfs -L "System" "$RootPart"
|
||||
else
|
||||
${cmd} parted "$RootDisk" --script --align=optimal -- "$RootDisk" \
|
||||
mklabel gpt \
|
||||
mkpart primary 1MiB 100MiB \
|
||||
mkpart primary 100MiB -2048s \
|
||||
set 1 esp
|
||||
${cmd} parted --script --align=optimal -- "$RootDisk" \
|
||||
mklabel gpt \
|
||||
mkpart primary 1MiB 100MiB \
|
||||
mkpart primary 100MiB -2048s \
|
||||
set 1 esp
|
||||
#mkfs.vfat -F 32 -n "EFI" "$RootPart"
|
||||
#mkfs.btrfs -L "System" "$RootPart"
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue