fix: change into /tmp before downloading dracut-sshd

This commit is contained in:
oddlama 2022-07-01 19:55:13 +02:00
parent b78dea2dc7
commit 70e51eaad8
No known key found for this signature in database
GPG Key ID: 14EFE510775FE39A
1 changed files with 1 additions and 0 deletions

View File

@ -132,6 +132,7 @@ function generate_initramfs() {
dracut_opts=()
if [[ $SYSTEMD == "true" && $SYSTEMD_INITRAMFS_SSHD == "true" ]]; then
cd /tmp || die "Could not change into /tmp"
try git clone https://github.com/gsauthof/dracut-sshd
try cp -r dracut-sshd/46sshd /usr/lib/dracut/modules.d
sed -e 's/^Type=notify/Type=simple/' \