Harald Hoyer
ea8ca78af0
crypt/parse-crypt.sh: fix udev rule creation
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
Andrey Borzenkov
6927f09e1c
cryptoroot-ask: limit number of plymouth password requests
...
Set number ot retries to 5 to align with non-plymouth case.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
14 years ago
Andrey Borzenkov
96d1d01572
cryptroot-ask: check that plymouth is running before use
...
Otherwise there is no way to skip pasword prompt. --has-active-vt
seems to correctly catch also the case when plymouthd is started
but splash is disabled.
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
14 years ago
Amadeusz Żołnowski
9fe4f5ff25
crypt: installing all crypto kernel modules instead of few selected
14 years ago
Amadeusz Żołnowski
b20ff981c4
crypt-lib.sh: moved IFS=: from before 'read' to before 'while'
...
Some versions of dash don't behave as expected with code like this:
while IFS=: read a b c; do
blah
done
Thanks to Eric Mertens who identified the issue.
14 years ago
Harald Hoyer
fcbcc89bb2
crypt: fix emergency script generation
...
[ forward port of e45a2dba]
14 years ago
Harald Hoyer
7d4f1101bc
add missing editor format commands
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
91f4d45f93
crypt: change /tmp/luks.keys seperator from "|" to ":"
...
Do it like on the kernel command line, so we only have one forbidden
character.
14 years ago
Amadeusz Żołnowski
8844cd6b6c
90crypt: probe for keydev asynchronously; changed kernel arg
...
New kernel argument syntax for LUKS-keydev is introduced:
rd.luks.key=<key_path>[:<key_dev>[:<luks_dev>]]
Unfolding <key_dev> in BNF:
<key_dev> ::= "UUID=" <uuid> | "LABEL=" <label> | <kname>
Where <kname> matches following regular expression:
^/dev/.*
<kname> need to be a character device and not a symlink for now.
For every rd.luks.key argument udev rule is created. That rule runs
test to check whether matching device contains <key_path>. If it does
it's applied to matching <luks_dev>.
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
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.
15 years ago
Amadeusz Żołnowski
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
15 years ago
Victor Lowther
85ab21a6e0
We are precise about hostonly checking these days.
...
So get rid of the comment in 90crypt/check.
Also do a bit of trivial bashification.
15 years ago
Harald Hoyer
9c7f67a94d
crypt: depend on dm
15 years ago
Harald Hoyer
8e102a2487
crypt: fix printf
15 years ago
Harald Hoyer
606852a4a6
crypt: loop until all non-busy crypt devs closed
15 years ago
Harald Hoyer
3f62b2637c
crypt: strip "luks-" from rd_LUKS_UUID
15 years ago
Harald Hoyer
e5c6cb2a8c
crypt: remove emergency source of dracut-lib.sh
15 years ago
Amadeusz Żołnowski
2926b5b35d
90crypt: keys on external devices support
...
99base/dracut-lib.sh: new fun.: getoptcomma, foreach_uuid_until
15 years ago
Harald Hoyer
ed61aae141
cryptroot-ask: s/getargs rd_NO_CRYPTTAB/getarg rd_NO_CRYPTTAB/g
15 years ago
Harald Hoyer
e9ef52b460
crypt: wait for all rd_LUKS_UUID disks to appear
...
Also give a hint in emergency, if one disk is not found.
15 years ago
Harald Hoyer
ecee64bffa
crypt/parse-crypt.sh: fix end label for luks udev rules
15 years ago
Harald Hoyer
540eb97162
crypt: removed default 70-luks.rules
15 years ago
Harald Hoyer
013986a8ad
crypt: assemble 70-luks.rules dynamically
15 years ago
Harald Hoyer
95c1941ce5
crypt: add fpu kernel module
15 years ago
Harald Hoyer
b48d98dda3
crypt: install more aes modules
15 years ago
Amadeusz Żołnowski
be0921a413
90crypt: 'crypto_LUKS' identifier corrected
15 years ago
Victor Lowther
2974f382f8
Have cryptroot-ask load dm_crypt if needed.
15 years ago
Victor Lowther
6a4f980921
Just look for cryptroot instead of /sbin/cryptroot
...
We know what the path is and what it contains in the initrd, and
not everyone puts cryptroot in /sbin
15 years ago
Harald Hoyer
dc40ea7fa1
crypt/dm: move dmeventd to dm module
15 years ago
Harald Hoyer
bb2200ffca
cryptroot-ask.sh: fixed luks handling
...
see https://bugzilla.redhat.com/show_bug.cgi?id=530898#c16
15 years ago
Harald Hoyer
2c2e3ad860
cryptroot-ask.sh: s/==/=/g (bug #542081 )
15 years ago
Philippe Seewer
2e6b98c7f6
All module scripts should have a shebang
15 years ago
Harald Hoyer
394f30d8d4
crypt: ignore devices in /etc/crypttab (root is not in there)
16 years ago
Harald Hoyer
349bac4214
crypt: install /etc/crypttab and honor crypttab entries
16 years ago
Harald Hoyer
c3844cbf4a
crypt: refix rd_LUKS_UUID handling
...
https://bugzilla.redhat.com/show_bug.cgi?id=533177
16 years ago
Harald Hoyer
b9c4654a63
devicemapper: add dmeventd and new rules for device mapper
16 years ago
Harald Hoyer
3329f92136
90crypt/70-luks.rules: set unique name for initqueue job
16 years ago
Harald Hoyer
650da7bada
removed initrdargs from parse-*.sh
16 years ago
Harald Hoyer
273b197d75
added initqueue-settled and refactored code
16 years ago
Harald Hoyer
e4dec3d6b6
{crypt,dmraid,lvm,mdraid}: cleanup with pre-pivot 30 and 31
16 years ago
Harald Hoyer
194f7d125f
90*/*cleanup.sh: fixed redirection to /dev/null
16 years ago
Harald Hoyer
780afa9876
release any raid/crypt/lvm device assembled, but not in use
16 years ago
Harald Hoyer
5c6a593f2e
add udevsettle function and settle after raid/lvm/crypto activities
16 years ago
Victor Lowther
59c88f499f
Abstract out vol_id vs. blkid usage
...
Since different distros may or may not use vol_id in udev, and blkid
is generally replacing vol_id, abstract them out into a function which
tries to use vol_id first and blkid second, on the assumption that
blkid can take over for vol_id if vol_id is no longer there.
16 years ago