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:
parent
a10ae8ac24
commit
e3c0bf815d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user