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
Jeremy Katz
7f819d7041
Support resetting the live overlay
...
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
16 years ago
Jeremy Katz
dfba82b3d3
And support passing in the persistent overlay
...
The persistent overlay can be specified with an overlay= argument
on the command line. We'll probably try to move this into the
root= syntax soon, but this is the old way that works
16 years ago
Jeremy Katz
3ae2f09a04
Support passing live_ram
...
live_ram allows you to load the entirety of the live image into
RAM and run it from there rather than off of the block device
16 years ago
Jeremy Katz
a2a2a956dd
Support passing the live_dir with live_dir=
...
The live image is assumed to be under LiveOS/ unless live_dir
is passed specifying otherwise
16 years ago
Jeremy Katz
fa9d7304bf
Support old syntax
...
livecd-creator previously added 'liveimg' and used root=CDLABEL=;
it's easy enough to support that old syntax for now at least
and it will make it easier to get people testing
16 years ago
Jeremy Katz
c56b63d1bd
Support checking the iso
...
Support checking the iso image with checkisomd5 if available
16 years ago
Jeremy Katz
2e44f115b9
Add basic support for dmsquashed live images
...
Fedora/Red Hat live images are implemented as an ext3fs inside of
a squashfs. Writability is achieved with a device-mapper snapshot
on top of that.
This gives the basic support without a lot of things like persistent
overlays, iso md5sum checking, etc and also with a new basic syntax
that has to be specified as root=live:LABEL=...
16 years ago