Harald Hoyer
af3ef92a6b
dmsquash-live: add iso9660 kernel module
2013-03-07 15:49:24 +01:00
Harald Hoyer
41eba87b32
dracut_need_initqueue
2013-03-06 17:29:11 +01:00
Frederick Grose
579f385384
Provide devices to enable booting with rd.live.overlay.readonly=1
2013-02-06 13:52:30 +01:00
Harald Hoyer
5204d1d36d
dmsquash-live: fixed checkisomd5 service call
2013-01-02 13:56:27 +01:00
Harald Hoyer
040f388331
dmsquash-live: add systemd checkisomd5 service
2012-12-14 09:04:55 +01:00
Will Woods
44f77ac1b0
apply-live-updates.sh: handle updates for /run
...
/run will get mounted at $NEWROOT/run after switch_root, but it's not
there yet. bind-mount it in place so updates for /run actually land in
/run.
(also: remove a redundant check for existing directories. mkdir -p
doesn't do anything if the directory already exists.)
2012-09-07 14:09:42 +02:00
Frederick Grose
0db77f5a2b
dmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request
2012-09-06 10:48:37 +02:00
Harald Hoyer
372c9b9647
dmsquash-live: do not eject medium for live_ram
2012-07-26 09:25:28 +02:00
Harald Hoyer
68e7661ca7
deprecate old command line options
2012-07-25 10:32:42 +02:00
Harald Hoyer
53fe81e752
modules.d/*/module-setup.sh: combine and specify type for installs
...
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
2012-06-29 12:41:27 +02:00
Amadeusz Żołnowski
1048124120
90dmsquash-live: don't source fs-lib.sh as it is not used
2012-06-29 12:41:27 +02:00
Juan RP
8442dc45b6
dmsquash-live: do not hardcode path to mount(8) in generated hook.
...
In some cases (at least in mine) mount(8) is in /usr/bin/mount and
not in /bin/mount as dmsquash-live-root.sh expects. PATH is set to
/usr/bin:/usr/sbin:/sbin:/bin in that script anyway.
2012-05-29 09:15:34 +02:00
Brian C. Lane
37427748d1
Fail to boot if mediacheck fails ( #817419 )
...
The return value of checkisomd5 was being ignored.
2012-05-10 11:52:45 +02:00
Harald Hoyer
b2de89c5dc
90dmsquash-live/dmsquash-live-root.sh: add symlink
...
/run/initramfs/livedev
2012-03-29 12:53:53 +02:00
Harald Hoyer
2c0317213e
get rid of /tmp/root.info
2012-03-08 11:00:29 +01:00
Will Woods
b43d651511
fix apply-live-updates failing because of /lib symlink
...
Since cp won't copy a directory over a symlink, any updates that were
supposed to go into e.g. /lib would get dropped if you had /updates/lib
as an actual directory, but the target system had /lib->/usr/lib.
2012-03-08 10:58:42 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +01:00
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
2012-02-13 07:08:08 +01:00
Harald Hoyer
027dbc9f85
dmsquash-live: really changed /dev/live-baseloop to /run/initramfs/
...
Forgot to amend my change to ce32e32f2a
2012-01-20 12:02:15 +01:00
Will Woods
a75c3afe68
minor cleanups in parsing for dmsquash-live and livenet
...
- use wait_for_dev in livenet
- clarify log message and fix missing newline in dmsquash-live
Signed-off-by: Will Woods <wwoods@redhat.com>
2012-01-13 11:50:53 +01:00
Brian C. Lane
ce32e32f2a
Create a symlink for the live image's base loop device
...
It is useful to know that loop device that the live image's / is mounted
from. Make a /run/initramfs/live-baseloop symlink that points to it.
Edited-By: harald@redhat.com: changed /dev/live-baseloop
to /run/initramfs/live-baseloop
2012-01-13 11:38:48 +01:00
Colin Guthrie
09ee7234b6
dmsquash: Ensure the 'loop' kernel module is included and loaded.
2012-01-09 13:34:17 +01:00
Brian C. Lane
14599cd760
Fix live update script ( #769970 )
...
pushd and popd are not available in the shell used by dracut.
2012-01-05 11:02:04 +01:00
Harald Hoyer
bf7487ab18
90dmsquash-live: wait for the /dev/mapper/live-rw device
...
wait for the /dev/mapper/live-rw device
2011-11-16 14:03:38 +01:00
Harald Hoyer
b0692d0311
add wait_for_dev() and wait_for_mount()
2011-11-15 09:47:16 +01:00
Will Woods
03b5494ca1
apply-live-updates.sh: copy without glob
...
cp $SRC/* $DEST will skip dotfiles in $SRC.
( cd $SRC; cp -a -t $DEST . ) will copy everything.
2011-10-21 13:18:06 +02:00
Harald Hoyer
bfdc0eba0b
90dmsquash-live: do not install by default
2011-10-21 10:29:58 +02:00
Will Woods
54ba7acba1
dmsquash-live: fix log message about root/liveroot
2011-10-18 17:13:50 +02:00
Harald Hoyer
ca8d4e8933
Do not use /run/udev/rules.d for udev rules
...
for rules, which should not be called in the real root.
Stale rules can cause this:
https://bugzilla.redhat.com/show_bug.cgi?id=734096
2011-09-19 12:21:51 +02:00
Harald Hoyer
e41e5b78c6
90dmsquash-live: do not symlink to /dev/live
...
/dev/live should not be used anyway
2011-09-19 12:20:11 +02:00
Harald Hoyer
baa5c11363
dmsquash-live-root: load filesystem modules before mounting loop images
...
might prevent https://bugzilla.redhat.com/show_bug.cgi?id=735199
2011-09-02 20:01:57 +02:00
Harald Hoyer
380b8b516e
dmsquash-live-root: use blkid to determine fstype of images
...
prevents:
dracut: FATAL: cannot mount live image (unknown filesystem type)
https://bugzilla.redhat.com/show_bug.cgi?id=735199
2011-09-02 20:01:50 +02:00
Harald Hoyer
566dab2ac1
90dmsquash-live/dmsquash-live-root: include fs_lib.sh for det_fs()
...
https://bugzilla.redhat.com/show_bug.cgi?id=730579
2011-08-17 08:24:30 +02:00
Will Woods
f116ca115c
add apply-live-updates.sh to pre-pivot hook
...
If we're about to start a Live image (i.e. if /dev/mapper/live-rw
exists) this script will take any files found in /updates (inside the
initramfs!) and and copy them into $NEWROOT.
This allows for hotfixes to be applied to existing Live images without
rebuilding the entire image.
Signed-off-by: Will Woods <wwoods@redhat.com>
2011-08-12 08:03:55 +02:00
Will Woods
a12db35efa
dmsquash-live-root: determine img type by contents, not name
...
Currently dmsquash-live-root requires that squashfs images be named
"squashfs.img" and all others be "ext3fs.img" or "rootfs.img".
If we've got a live image in initramfs, this patch will make dracut use
losetup and det_fs to determine the actual filesystem type of the image.
Signed-off-by: Will Woods <wwoods@redhat.com>
2011-08-12 08:03:55 +02:00
Will Woods
48205bb064
dmsquash-live-root cleanups/mini-fixes
...
- use last ro/rw cmdline arg rather than favoring 'rw' over 'ro'
- don't bother with useless RES variable for holding $?
- only do fs check when $livedev is a block device
Signed-off-by: Will Woods <wwoods@redhat.com>
2011-08-12 08:03:55 +02:00
Harald Hoyer
34b22d6049
90dmsquash-live: optionally install eject
2011-07-20 17:49:29 +02:00
Harald Hoyer
802e7e1c2e
dmsquash-live: install eject with dracut_install
...
the new search path does the right thing
2011-07-01 10:14:47 +02:00
Harald Hoyer
3da7836035
dracut: fix overlayfs paths
2011-05-20 13:00:46 +02:00
Alan Pevec
f7c05c5514
dmsquash-live/dmsquash-live-root: add missing changes for /run
...
Change to /run/initramfs/squashfs/ was not complete.
2011-05-12 14:28:04 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
2011-04-08 13:49:06 +02:00
Alan Pevec
93724aa28f
dmsquash-live: hide plymouth while checking ISO
...
Fixes long-standing FIXME
Latest isomd5sum added an option to abort media check with ESC key,
but that key is taken by plymouth for switching to the detailed log
messages, making it impossible to abort checkisomd5.
Tested in text mode.
2011-04-08 10:54:05 +02:00
Harald Hoyer
d125a47061
mkdir always with -m 0755
2011-04-08 10:39:46 +02:00
Harald Hoyer
98b108284c
dmsquash-live/dmsquash-live-genrules.sh: fixed udev rule location
...
Fixed the rule directory to $UDEVRULESD
2011-03-31 08:24:15 +02:00
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25 16:10:46 +01:00
Harald Hoyer
c9f1e3d1f4
check for getarg() function before sourcing dracut-lib.sh
...
make use of "type getarg" to check, if we really need to source
dracut-lib.sh
2011-03-25 16:10:46 +01:00
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
2011-03-18 18:23:44 +01:00
Will Woods
fe17f4e86b
dmsquash-live: use 'rootfs.img' for rootfs image name
...
Every image gets handled the same way regardless of filesystem, so
let's use a filesystem-neutral name (rather than adding new
lines for every fstype anyone might want to use).
2011-03-14 16:30:39 +01:00
Harald Hoyer
77e607a3a7
prepare for future udev rules.d location
...
future udev will have rules.d in /dev/.run/udev/rules.d
Also remove compat symlinks, because we want to get rid of these files
anyway.
2011-03-10 19:19:09 +01:00