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
Harald Hoyer
1cf0b1750b
removed cdrom hack for live CDs
...
The hack does not work reliable for CDROMs with the firmware bug.
We have really to fix cdrom_id.
15 years ago
Munehiro Matsuda
651f3f3d1a
dmsquash: add support for loopmounted *.iso files
...
https://bugzilla.redhat.com/show_bug.cgi?id=548283
15 years ago
Harald Hoyer
71cfa2e225
dmsquash: add nasty hack for cdroms
...
Some CDROMs do not generate a label symlink and have to be read from.
15 years ago
Philippe Seewer
2e6b98c7f6
All module scripts should have a shebang
15 years ago
Warren Togami
24dcacc78f
dmsquash-live-root requires grep
16 years ago
Harald Hoyer
cdc74b198e
dmsquash-live: run dmsquash-live-root after udev settle
16 years ago
Harald Hoyer
ec01ab23fb
dmsquash: use info() and die() rather than echo
16 years ago
Warren Togami
845dd50275
Removing umount appears to be a mistake, it seems to have been OK prior.
16 years ago
Warren Togami
23aa204856
Fix LiveCD boot regression caused by bf55e2c5d3
...
FIXME: There is still something wrong with this boot where it wants to use umount, but doing so breaks live boot.
16 years ago
Harald Hoyer
fc1abcfa1f
dmsquash-live: add initqueue-finished
16 years ago
Warren Togami
bf55e2c5d3
dmsquash-live-root requires umount
16 years ago
Harald Hoyer
273b197d75
added initqueue-settled and refactored code
16 years ago
Jeremy Katz
a607b7d4b8
Fix syntax error in conditional
...
Fix a typo in the conditionals. Not sure how I didn't notice these
before
16 years ago
Harald Hoyer
f905c1d7d6
dmsquash-live: install the "real" eject
...
eject might be a symlink to consolehelper
16 years ago
Jeremy Katz
cc0e7a369b
Parse options earlier for live root
16 years ago