Harald Hoyer
dfb08e9f1c
removed now useless cleanup hooks
...
in Fedora 17, we unpack /boot/initramfs-$(uname -r).img
on shutdown for a pivot root to disassemble the root device
2012-02-15 10:08:59 +01:00
Harald Hoyer
56ac6c7e76
move all file removal cleanups to "cleanup" hook
2012-02-07 19:44:03 +01:00
Harald Hoyer
a178ca6b5c
more cleanup in pre-pivot
2012-02-07 10:32:35 +01:00
Harald Hoyer
39339512e2
plymouth/kernel: cleanup not needed parts for shutdown
...
remove plymouth and kernel parts from /run/initramfs, which are not
needed at shutdown.
https://bugzilla.redhat.com/show_bug.cgi?id=751189
2012-01-23 10:41:41 +01:00
James Buren
e38fcc8608
plymouth: add xz support for kernel modules
...
This rewrites a portion of the module to support xz, as well as allow
an easier expansion should future compression methods for kernel
modules ever materialize.
2012-01-23 09:59:35 +01:00
Cong Wang
1b7fd0fa3e
Check module dependencies of mount points
...
Like -H, we need to poll every module to check if it is needed
to mount a specific device in '--mount'.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
2012-01-13 11:35:49 +01:00
Anssi Hannula
5fae9d9a20
plymouth: Include kms modules even if they are not currently loaded.
...
This should fix initial initrd generation during install.
If the modules are not desired to be used, the nokmsboot kernel
command line should disable them.
2012-01-09 13:28:29 +01:00
Colin Guthrie
7835e1465f
Handle compressed kmods.
...
This was orignally from Mandriva patch: dracut-011-plymouth-compressed-kmod.patch
2012-01-09 13:26:06 +01:00
Harald Hoyer
87af1cba3c
50plymouth/plymouth-pretrigger.sh: respect primary console setting
...
The kernel's primary console device is determined by the last "console="
argument on the kernel command line. This setting should be respected by
dracut-generated initial RAM disks.
Steps to Reproduce:
(Easiest using a KVM VM, virt-manager and "virsh console")
1. Boot with a kernel command line ending in
console=tty0 console=ttyS0,115200
2. Observe both tty0 and ttyS0.
The output of init scripts is sent to ttyS0, as the final "console="
argument determines the primary console device as per
Documentation/serial-console.txt in the kernel sources.
https://bugzilla.redhat.com/show_bug.cgi?id=752073
2011-11-15 09:47:22 +01:00
Harald Hoyer
a3381af1de
50plymouth: add plymouth.enable kernel command line option
2011-08-29 18:32:24 +02:00
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
2011-05-12 11:06:47 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
424ecce632
plymouth/gensplash: reset tty after plymouth messed with it
2011-05-03 14:49:45 +02:00
Harald Hoyer
c99014d5ef
console_init/plymouth: use systemd-vconsole, if available
...
also init the console before starting the plymouth daemon
2011-05-03 09:59:14 +02:00
Harald Hoyer
d125a47061
mkdir always with -m 0755
2011-04-08 10:39:46 +02:00
Harald Hoyer
8ee30d09a4
plymouth: use /run/plymouth/pid instead of /run/initramfs/plymouth
2011-03-30 16:24:57 +02:00
Harald Hoyer
7931bf0420
plymouth gensplash: check for console_init before calling it
...
Thanks Jon Ander Hernandez!
2011-03-29 16:38:11 +02:00
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
2011-03-18 18:23:44 +01:00
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.
2011-03-10 12:40:47 +01:00
Harald Hoyer
8ce58f1f42
add missing shebang
2011-02-23 09:38:25 +01:00
Harald Hoyer
1cedde0681
plymouth: touch /dev/.systemd/plymouth
...
until plymouth does it itsself, touch /dev/.systemd/plymouth
https://bugzilla.redhat.com/show_bug.cgi?id=676302
2011-02-09 13:22:49 +01:00
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
2011-02-02 16:35:18 +01:00
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
2011-02-02 13:56:03 +01:00
Lubomir Rintel
ae202ef02e
Search in for KMS-capable drivers in extra/ as well
...
User can have an out-of-tree video driver supporting KMS installed;
Intel GMA500 drivers from RPM Fusion are one example of such module.
2010-11-19 19:08:03 +01:00
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
2010-10-28 17:11:27 +02:00
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
2010-09-10 15:34:36 +02:00
Harald Hoyer
a79f11d254
plymouth: do not create hvc0
...
must have been a copy&paste error
2010-08-25 13:26:13 +02:00
Matt Smith
7254c24a76
Merged cryptroot-ask.sh from plymouth to crypt module.
...
First, it's duplicate code.
Second, it did not allow those who had plymouth installed to use other
methods, like the new usb key file. When building the initram,
it would install the plymouth cryptroot-ask script, and not
the crypt module one.
Added these new items to crypt module's cryptroot-ask.sh:
- 'unset' for used variables
- udevsettle
The non-plymouth cryptsetup prompt was using $1 instead of $device.
Changed prompt number from 1 to 5, as this is much nicer.
I believe plymouth already does infinite prompts.
Also added unset for usb key. Just saw it didn't unset its vars.
2010-08-23 11:55:11 +02:00
Amadeusz Żołnowski
55309e7800
use $libdir and $usrlibdir instead of individual detect with ldd
2010-08-23 11:55:11 +02:00
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
Harald Hoyer
cfa5a0da6d
plymouth: udev trigger with action=add
2010-08-13 11:26:34 +02:00
Harald Hoyer
f2db681002
plymouth: load dm_crypt module
2010-08-09 13:09:13 +02:00
Harald Hoyer
e001359311
mknod with mode and set umask for the rest
2010-07-23 11:30:45 +02:00
Harald Hoyer
ed61aae141
cryptroot-ask: s/getargs rd_NO_CRYPTTAB/getarg rd_NO_CRYPTTAB/g
2010-07-12 18:47:08 +02:00
Harald Hoyer
013986a8ad
crypt: assemble 70-luks.rules dynamically
2010-07-12 14:31:21 +02:00
Harald Hoyer
5cae1fe179
plymouth: depend on crypt, if cryptsetup exists
2010-07-09 11:19:32 +02:00
Harald Hoyer
08e10f05f6
plymouth/cryptroot-ask.sh: beautify password prompt
2010-06-09 11:56:06 +02:00
Harald Hoyer
b6a7c09070
chmod 0755 *.sh
2010-05-19 09:40:48 +02:00
Harald Hoyer
a8ca68a91e
plymouth/plymouth-populate-initrd: get rid of awk
2010-05-07 11:02:31 +02:00
Harald Hoyer
5be225d299
use "grep" directly without "nm" to drop binutils requirement
2010-05-07 10:44:30 +02:00
Harald Hoyer
d7a272a95e
plymouth: only display luksname and device for multiple luks
...
https://bugzilla.redhat.com/show_bug.cgi?id=561092
2010-05-06 17:32:34 +02:00
Harald Hoyer
bb2200ffca
cryptroot-ask.sh: fixed luks handling
...
see https://bugzilla.redhat.com/show_bug.cgi?id=530898#c16
2010-01-12 14:55:09 +01:00
Harald Hoyer
0a19e31886
plymouth-pretrigger: force initializing of console (bug #526570 )
2009-12-21 15:15:38 +01:00
Harald Hoyer
2c2e3ad860
cryptroot-ask.sh: s/==/=/g (bug #542081 )
2009-12-21 15:15:23 +01:00
Harald Hoyer
394f30d8d4
crypt: ignore devices in /etc/crypttab (root is not in there)
2009-11-12 14:56:36 +01:00
Harald Hoyer
349bac4214
crypt: install /etc/crypttab and honor crypttab entries
2009-11-05 17:06:26 +01:00
Harald Hoyer
c3844cbf4a
crypt: refix rd_LUKS_UUID handling
...
https://bugzilla.redhat.com/show_bug.cgi?id=533177
2009-11-05 17:06:26 +01:00
Harald Hoyer
8aa36728f5
plymouth: suppress "find" errors
2009-10-08 14:21:31 +02:00
Harald Hoyer
b94c520660
plymouth: add rd_NO_PLYMOUTH
2009-09-15 15:00:23 +02:00
Harald Hoyer
1888e57bf9
plymouth: grep for PLYMOUTH_POPULATE_SOURCE_FUNCTIONS
2009-09-14 19:34:30 +02:00