1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00

boot/init: Mount is fulfilled if anything is mounted at target

It's extremely unlikely something wrong is mounted at the target.
This commit is contained in:
Samuel Dionne-Riel 2022-05-28 17:34:14 -04:00
parent a10ae8ac24
commit e3c0bf815d

View File

@ -80,6 +80,11 @@ module Dependencies
unless task
$logger.warn("Missing Mount task for mount point #{@mount_point}")
end
# Already mounted?
# (Could be e.g. mounted beforehand or mounted by the kernel implicitly)
return true if Mounting.mountpoint?(@mount_point)
if task
task.refresh_lvm
task.ran