Amadeusz Żołnowski
2f95d699dc
crypt-lib.sh: 'command -v' preferred over 'type'
2011-05-06 12:23:51 +02:00
Harald Hoyer
f024bf0dcd
base, crypt: install umount, because it is used
2011-04-20 16:51:39 +02:00
Harald Hoyer
8234b92d85
crypt/cryptroot-ask.sh: check and use NEWROOT
2011-04-11 13:34:58 +02:00
Harald Hoyer
6730280c5b
crypt/parse-crypt.sh: fixed rule creation
...
"\n" was missing
create rules file on tmp file and rename it later
2011-04-08 13:50:10 +02:00
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
2011-04-08 13:49:06 +02:00
Harald Hoyer
ea8ca78af0
crypt/parse-crypt.sh: fix udev rule creation
2011-04-08 10:23:58 +02:00
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
2011-03-25 16:10:46 +01:00
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
2011-03-25 16:10:46 +01:00
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>
2011-03-11 11:44:02 +01:00
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>
2011-03-11 09:43:44 +01:00
Amadeusz Żołnowski
9fe4f5ff25
crypt: installing all crypto kernel modules instead of few selected
2011-03-09 18:09:23 +01:00
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.
2011-03-07 13:56:41 +01:00
Harald Hoyer
fcbcc89bb2
crypt: fix emergency script generation
...
[ forward port of e45a2dba]
2011-03-07 13:37:20 +01:00
Harald Hoyer
7d4f1101bc
add missing editor format commands
2011-02-23 09:41:08 +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
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.
2010-11-12 14:11:33 +01:00
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>.
2010-11-12 14:08:08 +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
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
f3af7bd66b
use 'type' built-in instead of external cmd 'which' in every Bash script
2010-08-23 11:54:09 +02:00
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.
2010-08-23 11:51:35 +02:00
Harald Hoyer
9c7f67a94d
crypt: depend on dm
2010-08-09 13:24:08 +02:00
Harald Hoyer
8e102a2487
crypt: fix printf
2010-08-02 14:17:58 +02:00
Harald Hoyer
606852a4a6
crypt: loop until all non-busy crypt devs closed
2010-08-02 09:59:10 +02:00
Harald Hoyer
3f62b2637c
crypt: strip "luks-" from rd_LUKS_UUID
2010-07-29 16:35:31 +02:00
Harald Hoyer
e5c6cb2a8c
crypt: remove emergency source of dracut-lib.sh
2010-07-23 12:26:42 +02:00
Amadeusz Żołnowski
2926b5b35d
90crypt: keys on external devices support
...
99base/dracut-lib.sh: new fun.: getoptcomma, foreach_uuid_until
2010-07-21 13:38:47 +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
e9ef52b460
crypt: wait for all rd_LUKS_UUID disks to appear
...
Also give a hint in emergency, if one disk is not found.
2010-07-12 16:16:39 +02:00
Harald Hoyer
ecee64bffa
crypt/parse-crypt.sh: fix end label for luks udev rules
2010-07-12 14:43:11 +02:00
Harald Hoyer
540eb97162
crypt: removed default 70-luks.rules
2010-07-12 14:33:43 +02:00
Harald Hoyer
013986a8ad
crypt: assemble 70-luks.rules dynamically
2010-07-12 14:31:21 +02:00
Harald Hoyer
95c1941ce5
crypt: add fpu kernel module
2010-06-21 20:47:01 +02:00
Harald Hoyer
b48d98dda3
crypt: install more aes modules
2010-06-11 12:52:16 +02:00
Amadeusz Żołnowski
be0921a413
90crypt: 'crypto_LUKS' identifier corrected
2010-06-09 11:04:02 +02:00
Victor Lowther
2974f382f8
Have cryptroot-ask load dm_crypt if needed.
2010-06-09 10:46:38 +02:00
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
2010-06-09 10:46:38 +02:00
Harald Hoyer
dc40ea7fa1
crypt/dm: move dmeventd to dm module
2010-01-13 16:33:40 +01: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
2c2e3ad860
cryptroot-ask.sh: s/==/=/g (bug #542081 )
2009-12-21 15:15:23 +01:00
Philippe Seewer
2e6b98c7f6
All module scripts should have a shebang
2009-11-27 14:07:21 +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
b9c4654a63
devicemapper: add dmeventd and new rules for device mapper
2009-09-23 16:52:14 -07:00
Harald Hoyer
3329f92136
90crypt/70-luks.rules: set unique name for initqueue job
2009-09-15 15:00:24 +02:00
Harald Hoyer
650da7bada
removed initrdargs from parse-*.sh
2009-09-10 17:34:15 +02:00
Harald Hoyer
273b197d75
added initqueue-settled and refactored code
2009-09-07 19:12:01 +02:00