From 4d276dbc6c23e4f166c8fe56e44268061e0cf3fc Mon Sep 17 00:00:00 2001 From: oddlama Date: Sun, 30 May 2021 22:39:41 +0200 Subject: [PATCH] Don't add fstab entry for zfs --- scripts/functions.sh | 2 +- scripts/main.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 7b57674..e114d53 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -858,7 +858,7 @@ function gentoo_chroot() { TMP_DIR="$TMP_DIR" \ CACHED_LSBLK_OUTPUT="$CACHED_LSBLK_OUTPUT" \ chroot -- "$chroot_dir" "$GENTOO_INSTALL_REPO_DIR/scripts/dispatch_chroot.sh" "$@" \ - || die "Failed to chroot into '$chroot_dir'" + || die "Failed to chroot into '$chroot_dir', or the executed command returned an error." } function enable_service() { diff --git a/scripts/main.sh b/scripts/main.sh index a5b0d45..7dd3d55 100644 --- a/scripts/main.sh +++ b/scripts/main.sh @@ -250,7 +250,9 @@ function generate_fstab() { einfo "Generating fstab" install -m0644 -o root -g root "$GENTOO_INSTALL_REPO_DIR/contrib/fstab" /etc/fstab \ || die "Could not overwrite /etc/fstab" - add_fstab_entry "UUID=$(get_blkid_uuid_for_id "$DISK_ID_ROOT")" "/" "$DISK_ID_ROOT_TYPE" "$DISK_ID_ROOT_MOUNT_OPTS" "0 1" + if [[ $USED_ZFS != "true" ]]; then + add_fstab_entry "UUID=$(get_blkid_uuid_for_id "$DISK_ID_ROOT")" "/" "$DISK_ID_ROOT_TYPE" "$DISK_ID_ROOT_MOUNT_OPTS" "0 1" + fi if [[ $IS_EFI == "true" ]]; then add_fstab_entry "UUID=$(get_blkid_uuid_for_id "$DISK_ID_EFI")" "/boot/efi" "vfat" "defaults,noatime,fmask=0177,dmask=0077,noexec,nodev,nosuid,discard" "0 2" else