Harald Hoyer
0e32ce3219
resume/resume.sh: prevent "resume: not found"
...
Problem lies in modules.d/95resume:
[ -x $(command -v resume) ] && command resume $a_splash "$resume"
``command -v resume'' prints nothing and ``test -x'' returns 0.
Thanks to Consus!
13 years ago
Harald Hoyer
24450a5ab7
resume: move resume in the initqueue/finished hook
...
this ensures, that resume is called as soon as possible
13 years ago
Harald Hoyer
450b5f336d
resume: move resume process to initqueue
13 years ago
Colin Guthrie
f65b874bda
resume: Fix failure when invalid device passed via 'resume='
...
This commit allows the waiting for a device to be cancelled.
When the resume partition does not exist, it becomes quite hard
to work out what to do (you have to either create the
/dev/resume symlink manually, or remove the 'finished' job
that is waiting for it). Additionally dracut incorrectly
displays a message about not being able to find the root
device, which is bogus and misleading.
This commit should just bail on the whole resume thing
if the device cannot be found and proceed with a normal boot.
13 years ago
Harald Hoyer
b0692d0311
add wait_for_dev() and wait_for_mount()
13 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
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
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
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
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
Andrey Borzenkov
856285aa90
resume: merge uswsusp module into resume
...
uswsusp almost completely duplicates resume; merge them.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
15 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
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
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
Harald Hoyer
11fcc8c8f9
95resume/install: give resume higher prio than mount
16 years ago
Harald Hoyer
2178a00eea
95resume: simplyfy rules and also recognize blkid typo
16 years ago
Harald Hoyer
5a8d8dfbb6
switch modules to initqueue-finished
16 years ago
Harald Hoyer
b006ff9930
removed shebang from .sh and changed mode to 0644
16 years ago
Harald Hoyer
a5cb5df189
also resume from "swsuspend" partitions
16 years ago
Harald Hoyer
e2ab42236b
resume from any suspend partition
...
If not "noresume" is specified and no explicit "resume=" given, try to resume
from any partition with type "suspend"
16 years ago
David Dillow
7132e6a346
Remove dependency on /bin/echo
...
Actually cut the last dependency on //bin/echo for resume.
16 years ago
David Dillow
9810ce7e38
resume: add support for labeled resume devices
...
I noticed when doing the block root= parser that resume
didn't support labeled resume devices. Fix that up and
get rid of a dependency on /bin/echo in the process.
16 years ago
David Dillow
e450281431
dracut: add cmdline hook
...
This hook is where each module should parse kernel command line
options and perform any legacy translation.
16 years ago
David Dillow
5c123162ed
block root: split out resume parsing and udev rules
...
We have a resume module, and these rules should live in it. Modify
the sort order a bit to ensure the resume rules continue to execute
first.
16 years ago
Victor Lowther
99576a2a63
Split out resume handling into its own hook.
16 years ago