hosts/_iso: fix bash syntax
This commit is contained in:
parent
a06bd77850
commit
6e62975666
@ -10,7 +10,7 @@ let
|
|||||||
echo "[I] Deploying with hostname ''${hostname}"
|
echo "[I] Deploying with hostname ''${hostname}"
|
||||||
|
|
||||||
device=""
|
device=""
|
||||||
for dev in ("/dev/vda" "/dev/sda"); do
|
for dev in "/dev/vda" "/dev/sda"; do
|
||||||
if [[ -b $dev ]]; then
|
if [[ -b $dev ]]; then
|
||||||
device=$dev
|
device=$dev
|
||||||
break
|
break
|
||||||
@ -60,7 +60,7 @@ let
|
|||||||
|
|
||||||
nixfiles-generate-config --root /mnt --hostname ''${hostname}
|
nixfiles-generate-config --root /mnt --hostname ''${hostname}
|
||||||
|
|
||||||
sed -i "s/\# boot\.loader\.grub\.device = \"/dev/sda\";/boot\.loader\.grub\.device = \"''${device}\";/g" /mnt/etc/nixos/hosts/''${hostname}/configuration.nix
|
sed -i "s~# boot\.loader\.grub\.device = \"/dev/sda\";~boot\.loader\.grub\.device = \"''${device}\";~g" /mnt/etc/nixos/hosts/''${hostname}/configuration.nix
|
||||||
|
|
||||||
echo "[I] Install NixOS"
|
echo "[I] Install NixOS"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user