]> granicus.if.org Git - zfs/commitdiff
zfs-import: should be before swap
authorHenrik Riomar <henrik.riomar@gmail.com>
Fri, 15 Mar 2019 01:12:17 +0000 (02:12 +0100)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 15 Mar 2019 01:12:17 +0000 (18:12 -0700)
zfs-import must be done before swap in order for swap on zvol to work

Reviewed-by: Kash Pande <kash@tripleback.net>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Henrik Riomar <henrik.riomar@gmail.com>
Closes #8502

etc/init.d/zfs-import.in

index fea661bbc53e756b47a7d2b987b2e20c885309a3..420d2e8a7a4e78fb96af0d56bcb9f07c57145763 100644 (file)
@@ -38,6 +38,7 @@
 
 do_depend()
 {
+       before swap
        after sysfs udev
        keyword -lxc -openvz -prefix -vserver
 }