summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsegfault <segfault@riseup.net>2019-07-17 23:03:11 +0200
committersegfault <segfault@riseup.net>2019-07-18 00:38:25 +0200
commit6830e8f38c008f75820f258090d8f607def53f4a (patch)
treed89e20911f8a629384f2669033dc92feb2256ad8
parent46796de04563be2a83a6a3e4202cb8473334c88f (diff)
Simplify regex (refs: #11897)feature/11897-improve-random-seed-file
-rwxr-xr-xconfig/chroot_local-includes/usr/share/initramfs-tools/scripts/init-bottom/update-seed2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-bottom/update-seed b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-bottom/update-seed
index a04e56f..1026973 100755
--- a/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-bottom/update-seed
+++ b/config/chroot_local-includes/usr/share/initramfs-tools/scripts/init-bottom/update-seed
@@ -28,7 +28,7 @@ fi
log_begin_msg "Writing new random seed to bootloader config"
SEED="$(hexdump -n 512 -e '"%02X"' /dev/urandom)"
sed -E -i \
- "s/(\s+)append(\s+)(randomseed=\S+\s)?/\1append\2randomseed=${SEED} /g" \
+ "s/(\s+append\s+)(randomseed=\S+\s)?/\1randomseed=${SEED} /g" \
"${rootmnt}/lib/live/mount/medium/syslinux/live64.cfg" \
"${rootmnt}/lib/live/mount/medium/EFI/BOOT/live64.cfg"
log_end_msg