contrib/lvm2/lvm2-rc.patch
Danny Rawlins e219f69baa lvm2: update patch to rc files (thanks denis yantarev)
add readme and patch auto add/remove
renamed and updated patch rc.diff -> rc.diff
2008-04-29 11:04:16 +10:00

30 lines
876 B
Diff

diff -pruN pkg.orig/etc/rc pkg/etc/rc
--- pkg.orig/etc/rc 2008-04-29 10:01:50.996260068 +1000
+++ pkg/etc/rc 2008-04-29 10:02:17.184261912 +1000
@@ -13,6 +13,13 @@ echo "The system is coming up. Please w
/bin/mount -n -t sysfs none /sys
/sbin/start_udev
+# Create device-mapper device nodes
+/sbin/dmsetup mknodes
+
+# Scan for LVM volume groups
+/sbin/vgscan --ignorelockingfailure
+/sbin/vgchange --ignorelockingfailure -a y
+
# Mount root read-only
/bin/mount -n -o remount,ro /
diff -pruN pkg.orig/etc/rc.shutdown pkg/etc/rc.shutdown
--- pkg.orig/etc/rc.shutdown 2008-04-29 10:01:50.996260068 +1000
+++ pkg/etc/rc.shutdown 2008-04-29 10:02:37.018264223 +1000
@@ -43,6 +43,8 @@ fi
/sbin/swapoff -a
# Unmount file systems
+/bin/umount -a -r -t nosysfs,noproc
+/sbin/vgchange --ignorelockingfailure -a n
/bin/umount -a -r
# Remount root filesystem read-only