Harald Hoyer
733c71ce9e
resume: make use of systemd-hibernate-resume, if existant
...
In systemd mode, and if systemd-hibernate-resume exists, use it
exclusively.
10 years ago
Thorsten Behrens
fe116c1670
Don't create lots of empty cmdline files for hostonly-cmdline case
...
This aligns other places piping cmdline() output to cmdline.d files
with the earlier fix for 95rootfs-block.
Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
Harald Hoyer
1ea5879085
resume: only install hostonly files, if in hostonly mode
11 years ago
Alexander Tsoy
c4b529f503
resume/module-setup.sh: filter out empty resume= options in cmdline()
...
cmdline() prints empty "resume=" options for non-persistent swap
devices, for example zram. Add a check for that.
This patch also fixes printf formatting and removes unused variables.
11 years ago
Harald Hoyer
636cc1ef63
resume/parse-resume.sh: correctly write timeout hook
11 years ago
Harald Hoyer
df6e79bfd2
resume/parse-resume.sh: fixed printf formatting
...
https://bugzilla.redhat.com/show_bug.cgi?id=1045704
11 years ago
Harald Hoyer
bb1ba3a1ca
resume: fixed udev rule for /dev/resume instead of /dev/dev/resume
...
https://bugzilla.redhat.com/show_bug.cgi?id=1045116
11 years ago
Harald Hoyer
8064f68d60
resume: no more autoresume
11 years ago
Harald Hoyer
40da1e5a31
resume: autoconf resume
11 years ago
Alexander Tsoy
1aedbb7886
resume: remove resume-genrules.sh
...
parse-resume.sh already contains all the code from resume-genrules.sh.
Also parse-resume.sh is executed before resume-genrules.sh, so there is
no point to keep the latter.
This fixes the following error messages:
dracut-initqueue: ln: failed to create symbolic link '/dev/resume': File exists
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/settled/resume.sh': No such file or directory
dracut-initqueue: rm: cannot remove '/lib/dracut/hooks/initqueue/timeout/resume.sh': No such file or directory
12 years ago
Alexander Tsoy
cfdec163f9
resume: fix swap detection in hostonly
...
Check for other possible fs types. This fixes swap detection when using
TuxOnIce kernel.
Note that parse-resume.sh generate udev rules with support for
ID_FS_TYPE=suspend, but we do not include it here, because it is
libvolume_id thing and host_fs_types is populated using blkid.
12 years ago
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
cb73315dd6
resume: debian's resume is in /usr/lib/uswsusp
...
Hurray! Everybody reinvents the wheel!
12 years ago
Harald Hoyer
34b56de12a
resume: do not include in hostonly, if no swap is present
12 years ago
Harald Hoyer
1e057b352a
add PARTLABEL and PARTUUID
12 years ago
Harald Hoyer
32bd2fbb4c
use "rm --" to guard against filenames beginning with "-"
12 years ago
Harald Hoyer
e8f7ea6794
resume: generate rules already in parse-resume.sh
12 years ago
Harald Hoyer
3899211bfc
resume: in systemd mode move functionality in the dracut services
12 years ago
Harald Hoyer
389333396a
resume: move resume hook from mount to pre-mount
12 years ago
Colin Guthrie
3ed09d970e
resume: Ensure we remove the timout job when we find the resume device
12 years ago
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