mkinitrd unification across distributions
 help / color / mirror / Atom feed
* Live boots without dm snapshots
@ 2014-08-01 12:33 Major Hayden
       [not found] ` <FEAE2E5C-F6FD-41D8-BB66-D3688E0FA271-rCS72UCksqc@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Major Hayden @ 2014-08-01 12:33 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-08-15 10:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-01 12:33 Live boots without dm snapshots Major Hayden
     [not found] ` <FEAE2E5C-F6FD-41D8-BB66-D3688E0FA271-rCS72UCksqc@public.gmane.org>
2014-08-15 10:22   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox