From 201535790e4745adf491c9bfe9ad89e1bf6b3bdb Mon Sep 17 00:00:00 2001 From: Suikan <26223147+suikan4github@users.noreply.github.com> Date: Tue, 29 Jun 2021 10:10:29 +0900 Subject: [PATCH] change "/dev/sda" to /dev/sda --- ubuntu/1-pre-install.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ubuntu/1-pre-install.sh b/ubuntu/1-pre-install.sh index bb67d91..eeb7cf4 100644 --- a/ubuntu/1-pre-install.sh +++ b/ubuntu/1-pre-install.sh @@ -67,7 +67,7 @@ if [ ${ERASEALL} -eq 1 ] ; then # Assign specified space and rest of disk to the EFI and LUKS partition, respectively. if [ ${ISEFI} -eq 1 ] ; then # Zap existing partition table and create new GPT - echo "...Initialize \"${DEV}\" with GPT." + echo "...Initialize ${DEV} with GPT." sgdisk --zap-all "${DEV}" # Create EFI partition and format it echo "...Create an EFI partition on ${DEV}." @@ -75,16 +75,16 @@ if [ ${ERASEALL} -eq 1 ] ; then echo "...Format the EFI parttion." mkfs.vfat -F 32 -n EFI-SP "${DEV}${EFIPARTITION}" # Create Linux partition - echo "...Create a Linux partition on \"${DEV}\"." + echo "...Create a Linux partition on ${DEV}." sgdisk --new=${CRYPTPARTITION}:0:0 --change-name=${CRYPTPARTITION}:"Linux LUKS" --typecode=${CRYPTPARTITION}:8309 "${DEV}" # Then print them sgdisk --print "${DEV}" else # Zap existing partition table - echo "...Erase partition table of \"${DEV}\"." + echo "...Erase partition table of ${DEV}." dd if=/dev/zero of=${DEV} bs=512 count=1 # Create MBR and allocate max storage for Linux partition - echo "...Create a Linux partition on \"${DEV}\" with MBR." + echo "...Create a Linux partition on ${DEV} with MBR." sfdisk ${DEV} <