]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Support resetting the live overlay
authorJeremy Katz <katzj@redhat.com>
Wed, 22 Jul 2009 20:14:00 +0000 (16:14 -0400)
committerHarald Hoyer <harald@redhat.com>
Tue, 4 Aug 2009 14:25:43 +0000 (16:25 +0200)
If you're using a persistent overlay, you might want to reset it
at boot time if it has become corrupted somehow.  Support using
reset_overlay as a command line optino to do so

modules.d/90dmsquash-live/dmsquash-live-root

index 5971b937005690d0c2e3d5dd97cf4ffc71cf0dbc..9b0371374c74d57ce3365eef29cb8a01e6b13bc6 100755 (executable)
@@ -44,7 +44,7 @@ fi
 live_dir=$(getarg live_dir)
 [ -z "$live_dir" ] && live_dir="LiveOS"
 getarg live_ram && live_ram="yes"
-reset_overlay=0
+getarg reset_overlay && reset_overlay="yes"
 overlay=$(getarg overlay)
 
 # overlay setup helper function