From be98f385f1447cb5875d198d1ac1ae91818568b6 Mon Sep 17 00:00:00 2001 From: Saverio Miroddi Date: Sat, 5 Jun 2021 22:44:56 +0200 Subject: [PATCH] Ubuntu Server: Create `/target` if missing The directory used to be created before [20.04.2]... AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAARGH!!!!!!!!!! --- install-zfs.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install-zfs.sh b/install-zfs.sh index 00c0f49..53c0fdb 100755 --- a/install-zfs.sh +++ b/install-zfs.sh @@ -1118,6 +1118,12 @@ You can switch anytime to this terminal, and back, in order to read the instruct # Server, but it's better not to take risks. # if ! mountpoint -q "$c_installed_os_mount_dir"; then + # There must be a conspiracy 🙄 `/target` used to be created before [20.04.2]. + # + if [[ ! -d $c_installed_os_mount_dir ]]; then + mkdir "$c_installed_os_mount_dir" + fi + mount "${v_temp_volume_device}p2" "$c_installed_os_mount_dir" fi