fix: change into /tmp before downloading dracut-sshd
This commit is contained in:
parent
b78dea2dc7
commit
70e51eaad8
|
@ -132,6 +132,7 @@ function generate_initramfs() {
|
||||||
|
|
||||||
dracut_opts=()
|
dracut_opts=()
|
||||||
if [[ $SYSTEMD == "true" && $SYSTEMD_INITRAMFS_SSHD == "true" ]]; then
|
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 git clone https://github.com/gsauthof/dracut-sshd
|
||||||
try cp -r dracut-sshd/46sshd /usr/lib/dracut/modules.d
|
try cp -r dracut-sshd/46sshd /usr/lib/dracut/modules.d
|
||||||
sed -e 's/^Type=notify/Type=simple/' \
|
sed -e 's/^Type=notify/Type=simple/' \
|
||||||
|
|
Loading…
Reference in New Issue