mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
i-t: don't try to import from empty cache
Chases 7c64ee9e77
("zfs-import-{cache,scan}: change condition to FileNotEmpty")
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #12108
This commit is contained in:
parent
a0242eceff
commit
2ba7a9e5cc
@ -706,7 +706,8 @@ mountroot()
|
||||
|
||||
# ------------
|
||||
# Look for the cache file (if any).
|
||||
[ ! -f "${ZPOOL_CACHE}" ] && unset ZPOOL_CACHE
|
||||
[ -f "${ZPOOL_CACHE}" ] || unset ZPOOL_CACHE
|
||||
[ -s "${ZPOOL_CACHE}" ] || unset ZPOOL_CACHE
|
||||
|
||||
# ------------
|
||||
# Compatibility: 'ROOT' is for Debian GNU/Linux (etc),
|
||||
|
Loading…
Reference in New Issue
Block a user