Merge pull request #202 from saveriomiroddi/fix_ubuntu_server_target_missing

Ubuntu Server: Create `/target` if missing
This commit is contained in:
Saverio Miroddi 2021-06-05 22:46:37 +02:00 committed by GitHub
commit 692b0bd2fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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