Harald Hoyer
b0692d0311
add wait_for_dev() and wait_for_mount()
13 years ago
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.
14 years ago
Harald Hoyer
bfdc0eba0b
90dmsquash-live: do not install by default
14 years ago
Will Woods
54ba7acba1
dmsquash-live: fix log message about root/liveroot
14 years ago
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
14 years ago
Harald Hoyer
e41e5b78c6
90dmsquash-live: do not symlink to /dev/live
...
/dev/live should not be used anyway
14 years ago
Harald Hoyer
baa5c11363
dmsquash-live-root: load filesystem modules before mounting loop images
...
might prevent https://bugzilla.redhat.com/show_bug.cgi?id=735199
14 years ago
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
14 years ago
Harald Hoyer
566dab2ac1
90dmsquash-live/dmsquash-live-root: include fs_lib.sh for det_fs()
...
https://bugzilla.redhat.com/show_bug.cgi?id=730579
14 years ago
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>
14 years ago
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>
14 years ago
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>
14 years ago
Harald Hoyer
34b22d6049
90dmsquash-live: optionally install eject
14 years ago
Harald Hoyer
802e7e1c2e
dmsquash-live: install eject with dracut_install
...
the new search path does the right thing
14 years ago
Harald Hoyer
3da7836035
dracut: fix overlayfs paths
14 years ago
Alan Pevec
f7c05c5514
dmsquash-live/dmsquash-live-root: add missing changes for /run
...
Change to /run/initramfs/squashfs/ was not complete.
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
14 years ago
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.
14 years ago
Harald Hoyer
d125a47061
mkdir always with -m 0755
14 years ago
Harald Hoyer
98b108284c
dmsquash-live/dmsquash-live-genrules.sh: fixed udev rule location
...
Fixed the rule directory to $UDEVRULESD
14 years ago
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
14 years ago
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
14 years ago
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
14 years ago
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).
14 years ago
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.
14 years ago
Harald Hoyer
b177e9133e
move all /dev/.initramfs to /dev/.run/initramfs
...
We want all "/var/run" information to live in /dev/.run, until the real
root is mounted.
Therefore we mount a tmpfs on /dev/.run, which can/will be bind/move mounted
on /var/run later on.
14 years ago
Will Woods
0ddd68f7e6
Add support for in-initramfs live images with "root=live:/path/name.img"
...
This allows creation of initramfs images which contain a Live system.
The primary use for this is keeping very large initramfs-based systems
(e.g. anaconda, the Fedora installer) compressed in-memory, by using a
compressed filesystem image like squashfs or btrfs.
dmsquash-live-genrules.sh will initqueue dmsquash-live-root itself
(rather than making udev rules) if the given live "device" is actually
an existing, plain file.
parse-dmsquash-live.sh will only accept paths that end in ".img".
dmsquash-live-root will only handle images named "*squashfs.img",
"*ext3fs.img", or "*btrfs.img".
14 years ago
Will Woods
533318113b
Look for btrfs.img in dmsquash-live-root
...
Btrfs is an excellent option for the root fs image for live systems,
especially since it does its own transparent compression.
14 years ago
Will Woods
dfec8467b9
Change EXT3FS to FSIMG
...
Change the EXT3FS variable to FSIMG, since we might want to use other
filesystems as our live root. Change comments to reflect this fact.
14 years ago
Will Woods
44159d0598
Make dmsquash-live install the squashfs driver
...
dmsquash-live uses squashfs, so let's make sure the driver is installed
14 years ago
Will Woods
3d88d27810
Fix bash logic typo/buglet ([ condition ] & expression)
14 years ago
Harald Hoyer
8ce58f1f42
add missing shebang
14 years ago
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
14 years ago
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
14 years ago
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
15 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Harald Hoyer
c492fe12c0
init: create /dev/.udev/rules.d with correct permissions
15 years ago
Harald Hoyer
e0c1d4e79f
mkdir /dev/.udev/rules.d with mode 0755
15 years ago
Harald Hoyer
91bb250aed
dmsquash-live: do not umount /dev/.initramfs/live for cdrom_id to work
15 years ago
Harald Hoyer
06f91665df
dmsquash-live: depend on dm module
15 years ago
Harald Hoyer
847b618b4c
dmsquash-live: mount live image at /dev/.initramfs/live
15 years ago
Harald Hoyer
185468f57d
dmsquash, resume: do not name the /dev/.udev/rules like the /etc ones
15 years ago
Harald Hoyer
ae5ec68355
Write rules for symlinks to /dev/.udev/rules.d for later usage
...
We want some symlinks to persist in the real root, so we write them to
/dev/.udev/rules.d, that they survive a retrigger.
15 years ago
Harald Hoyer
b6a7c09070
chmod 0755 *.sh
15 years ago
Joey Boggs
fbf1b5b138
teach dmsquash-live-root to use rootflags
15 years ago
Harald Hoyer
de50046cd7
dmsquash-live-root: use blockdev with --getsz
...
Thanks Karel for pointing this out.. again :)
15 years ago
Harald Hoyer
aab70adc0b
dmsquash-live: use --getsize64 instead of --getsize
15 years ago
Joey Boggs
7baade2b87
add readonly overlay support for dmsquash
...
Adds the readonly_overlay karg for cases where the dm snapshot should be set to readonly. Use case would be a livecd that is configured to have a readonly root where filling up the dm snapshot would cause a problem.
15 years ago