-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Open
Labels
Type: DefectIncorrect behavior (e.g. crash, hang)Incorrect behavior (e.g. crash, hang)
Description
A debian user reported a bug that datasets with property canomunt=noauto set would also be (or at least tried to be) mounted during boot by initramfs scripts.
This behavior is described in:
zfs/contrib/initramfs/scripts/zfs
Lines 337 to 343 in 1f3444f
| # Skip filesystems with canmount=off. The root fs should not have | |
| # canmount=off, but ignore it for backwards compatibility just in case. | |
| if [ "$fs" != "${ZFS_BOOTFS}" ] | |
| then | |
| canmount=$(get_fs_value "$fs" canmount) | |
| [ "$canmount" = "off" ] && return 0 | |
| fi |
I understand this logic is mainly for mounting rootfs which has noauto set. Maybe we could avoid mounting other similar datasets, e.g., by comparing the dataset name with the actual ROOT?
Metadata
Metadata
Assignees
Labels
Type: DefectIncorrect behavior (e.g. crash, hang)Incorrect behavior (e.g. crash, hang)