diff options
author | Simon Rettberg | 2023-02-01 12:10:15 +0100 |
---|---|---|
committer | Simon Rettberg | 2023-02-01 12:10:15 +0100 |
commit | 26a4ac7f1e8215d2745a284d83d4520c56d3352a (patch) | |
tree | b7cf9f621da041454cb8487b3eeca4287bf1dc69 | |
parent | Fix dracut compile for latest version (059) (diff) | |
download | systemd-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-x | build-initramfs.sh | 3 |
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 \ |