Remove unused and deprecated function

This commit is contained in:
Kris Lamoureux 2023-06-12 01:42:00 -04:00
parent 81f387c340
commit bbb88746ad
Signed by: kris
GPG Key ID: 3EDA9C3441EDA925

View File

@ -112,24 +112,6 @@ function create_root_pool () {
rpool $2 rpool $2
} }
function part_path () {
local DISK="$1"
local PART="$2"
[ "$(disk_check "$DISK")" == 1 ] && exit 1
if [ "${DISK:0:7}" == "/dev/sd" ]; then
DISK_PART="${DISK}${PART}"
elif [ "${DISK:0:9}" == "/dev/nvme" ]; then
DISK_PART="${DISK}p${PART}"
else
echo "ERROR: Disk not recognized"
exit 1
fi
[ "$(disk_check "$DISK_PART")" == 1 ] && exit 1
echo "$DISK_PART"
exit 0
}
function mirror_grub () { function mirror_grub () {
umount /boot/efi umount /boot/efi
dd if="$1" of="$2" dd if="$1" of="$2"