summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2023-02-01 12:10:15 +0100
committerSimon Rettberg2023-02-01 12:10:15 +0100
commit26a4ac7f1e8215d2745a284d83d4520c56d3352a (patch)
treeb7cf9f621da041454cb8487b3eeca4287bf1dc69
parentFix dracut compile for latest version (059) (diff)
downloadsystemd-init-26a4ac7f1e8215d2745a284d83d4520c56d3352a.tar.gz
systemd-init-26a4ac7f1e8215d2745a284d83d4520c56d3352a.tar.xz
systemd-init-26a4ac7f1e8215d2745a284d83d4520c56d3352a.zip
Make ask-password removal more sophisticated
... i.e., don't break the whole script
-rwxr-xr-xbuild-initramfs.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build-initramfs.sh b/build-initramfs.sh
index 436108f3..e6f435bc 100755
--- a/build-initramfs.sh
+++ b/build-initramfs.sh
@@ -347,6 +347,7 @@ initialize_dracut() {
echo 'Compiling dracut.'
./configure || exit 1
make dracut-install || exit 1
+ make dracut-util
popd || exit 1
return $?
}
@@ -479,7 +480,7 @@ main() {
fi
# ask password shice wegkloppen
- sed -i '/systemd-ask-password/d' "${_dracut_dir}/modules.d/00systemd/module-setup.sh"
+ sed -r -i 's/\S*systemd\S*-ask-password[.a-z0-9_/-]*//g' "${_dracut_dir}/modules.d/00systemd/module-setup.sh"
echo 'Building initramfs...'
"${_dracut_dir}/dracut.sh" --local \