Minor touchups
This commit is contained in:
parent
e96a557d9a
commit
0d99930fa7
10
debianzfs.sh
10
debianzfs.sh
@ -7,7 +7,7 @@
|
|||||||
### Functions ###
|
### Functions ###
|
||||||
#################
|
#################
|
||||||
function usage () {
|
function usage () {
|
||||||
echo "Usage: ./$(basename "$0") [-mpPr] <DISK> [hostname]"
|
echo "Usage: ./$(basename "$0") [-mpPr] <DISK> <HOSTNAME>"
|
||||||
}
|
}
|
||||||
|
|
||||||
function disk_check () {
|
function disk_check () {
|
||||||
@ -157,9 +157,6 @@ if [ "$DEBUG" == "true" ]; then
|
|||||||
echo "RPOOLPW=${RPOOLPW}"
|
echo "RPOOLPW=${RPOOLPW}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Display commands
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# Are the DISK paths block devices? AND
|
# Are the DISK paths block devices? AND
|
||||||
# Are the DISK pathes empty devices? i.e., no filesystem signatures
|
# Are the DISK pathes empty devices? i.e., no filesystem signatures
|
||||||
disk_check "$DISK"
|
disk_check "$DISK"
|
||||||
@ -173,6 +170,9 @@ fi
|
|||||||
### Step 1: Prepare The Install Environment ###
|
### Step 1: Prepare The Install Environment ###
|
||||||
###############################################
|
###############################################
|
||||||
|
|
||||||
|
# Display commands
|
||||||
|
set -x
|
||||||
|
|
||||||
# 1. Boot the Debian GNU/Linux Live CD... done
|
# 1. Boot the Debian GNU/Linux Live CD... done
|
||||||
# 2. Setup and update the repositories
|
# 2. Setup and update the repositories
|
||||||
SOURCES_LIST="/etc/apt/sources.list"
|
SOURCES_LIST="/etc/apt/sources.list"
|
||||||
@ -403,7 +403,7 @@ update-grub
|
|||||||
# 6. Install the boot loader
|
# 6. Install the boot loader
|
||||||
# For UEFI booting, install GRUB to the ESP
|
# For UEFI booting, install GRUB to the ESP
|
||||||
grub-install --target=x86_64-efi --efi-directory=/boot/efi \
|
grub-install --target=x86_64-efi --efi-directory=/boot/efi \
|
||||||
--bootloader-id=debian --recheck --no-floppy
|
--bootloader-id=debian --recheck --no-floppy
|
||||||
|
|
||||||
# 7. Fix filesystem mount ordering
|
# 7. Fix filesystem mount ordering
|
||||||
mkdir /etc/zfs/zfs-list.cache
|
mkdir /etc/zfs/zfs-list.cache
|
||||||
|
Loading…
Reference in New Issue
Block a user