Don't add fstab entry for zfs
This commit is contained in:
parent
f77f2a7955
commit
4d276dbc6c
|
@ -858,7 +858,7 @@ function gentoo_chroot() {
|
||||||
TMP_DIR="$TMP_DIR" \
|
TMP_DIR="$TMP_DIR" \
|
||||||
CACHED_LSBLK_OUTPUT="$CACHED_LSBLK_OUTPUT" \
|
CACHED_LSBLK_OUTPUT="$CACHED_LSBLK_OUTPUT" \
|
||||||
chroot -- "$chroot_dir" "$GENTOO_INSTALL_REPO_DIR/scripts/dispatch_chroot.sh" "$@" \
|
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() {
|
function enable_service() {
|
||||||
|
|
|
@ -250,7 +250,9 @@ function generate_fstab() {
|
||||||
einfo "Generating fstab"
|
einfo "Generating fstab"
|
||||||
install -m0644 -o root -g root "$GENTOO_INSTALL_REPO_DIR/contrib/fstab" /etc/fstab \
|
install -m0644 -o root -g root "$GENTOO_INSTALL_REPO_DIR/contrib/fstab" /etc/fstab \
|
||||||
|| die "Could not overwrite /etc/fstab"
|
|| die "Could not overwrite /etc/fstab"
|
||||||
|
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"
|
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
|
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"
|
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
|
else
|
||||||
|
|
Loading…
Reference in New Issue