mirror of
git://slackware.nl/current.git
synced 2024-12-27 09:59:16 +01:00
2cdd1d4264
a/mkinitrd-1.4.11-x86_64-55.txz: Rebuilt. mkinitrd_command_generator.sh: fix handling of -h -l and -K options for hibernate partition, keyboard map, and LUKS keyfile. Thanks to alienBOB. l/json-glib-1.10.6-x86_64-1.txz: Upgraded. x/egl-wayland-1.1.17-x86_64-1.txz: Upgraded.
31 lines
1 KiB
Diff
31 lines
1 KiB
Diff
--- ./mkinitrd_command_generator.sh.orig 2024-11-08 16:01:47.271041636 -0600
|
|
+++ ./mkinitrd_command_generator.sh 2024-12-10 12:50:57.114973388 -0600
|
|
@@ -442,11 +442,19 @@
|
|
SRCHLIST=$(echo $SRCHLIST | cut -d' ' -f2-) # cut ELEM from the list
|
|
if [ "$ELEM" = "-o" ]; then
|
|
IMGFILE=$(echo $SRCHLIST | cut -d' ' -f1)
|
|
- break
|
|
+ elif [ "$ELEM" = "-h" ]; then
|
|
+ RESUMEDEV=$(echo $SRCHLIST | cut -d' ' -f1)
|
|
+ elif [ "$ELEM" = "-l" ]; then
|
|
+ KEYMAP=$(echo $SRCHLIST | cut -d' ' -f1)
|
|
+ elif [ "$ELEM" = "-K" ]; then
|
|
+ LUKSKEY="$(echo $SRCHLIST | cut -d' ' -f1)"
|
|
fi
|
|
done
|
|
fi
|
|
IMGFILE=${IMGFILE:-"/boot/initrd.gz"}
|
|
+RESUMEDEV=${RESUMEDEV:-""}
|
|
+KEYMAP="${KEYMAP:-"us"}"
|
|
+LUKSKEY="${LUKSKEY:-""}"
|
|
|
|
# Get information about the root device / root filesystem:
|
|
ROOTDEV=${ROOTDEV:-$(get_root_device)}
|
|
@@ -859,6 +867,7 @@
|
|
KEYMAP="$KEYMAP"
|
|
MODULE_LIST="$(echo $MLIST | cut -f2 -d\ )"
|
|
LUKSDEV="$REALDEV"
|
|
+ LUKSKEY="${LUKSKEY}"
|
|
ROOTDEV="$ROOTDEV"
|
|
ROOTFS="$ROOTFS"
|
|
RESUMEDEV="$RESUMEDEV"
|