mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-08-16 20:00:36 +03:00
check if tar exists on target system
This commit is contained in:
parent
b7c4b74bf9
commit
416390f6dd
@ -87,6 +87,10 @@ fetch(){
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
if command -v tar >/dev/null 2>&1; then
|
||||
echo "no tar command found, but required to unpack kexec tarball" >&2
|
||||
exit 1
|
||||
fi
|
||||
rm -rf /root/kexec
|
||||
mkdir -p /root/kexec
|
||||
fetch "$kexec_url" | tar -C /root/kexec -xvzf-
|
||||
|
Loading…
Reference in New Issue
Block a user