Live boots without dm snapshots

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

I'm working with a large environment where one of our design goals is to live boot systems from images we generate within our company.  We've been stuffing a filesystem image into a squashfs so far (following Fedora documentation) and dracut handles it well.  However, when the device mapper snapshot fills, we're stuck with a server that needs a hard reboot.  I've tried a direct filesystem image boot and that works but I'm still stuck with a snapshot.

Through some awful shell hacking last night, I disabled do_live_from_base_loop and set up the loopback device as writeable:

diff --git a/modules.d/90dmsquash-live/dmsquash-live-root.sh b/modules.d/90dmsquash-live/dmsquash-live-root.sh
index 5705e8d..38d20e0 100755
--- a/modules.d/90dmsquash-live/dmsquash-live-root.sh
+++ b/modules.d/90dmsquash-live/dmsquash-live-root.sh
@@ -182,5 +182,5 @@ if [ -n "$FSIMG" ] ; then
     BASE_LOOPDEV=$( losetup -f )
-    losetup -r $BASE_LOOPDEV $FSIMG
+    losetup $BASE_LOOPDEV $FSIMG

-    do_live_from_base_loop
+    #do_live_from_base_loop
 fi

I was then able to boot the filesystem image as read/write and that system has been running well overnight.

Obviously, this hack is ugly and needs significant work.  I'm interested to know if the direction I'm going makes sense or if I'm totally off base.  Ideally, I'd like to use a union filesystem or btrfs seed device to handle the read-only volume and COW, but that will take a lot more work.

Thanks in advance for any input you can provide!

--
Major Hayden

--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux