diff options
-rwxr-xr-x | bin/install_script.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/install_script.sh b/bin/install_script.sh index 15c770c..d9d3808 100755 --- a/bin/install_script.sh +++ b/bin/install_script.sh | |||
@@ -116,7 +116,7 @@ tar -xzf "\$NAME" | |||
116 | 116 | ||
117 | echo 'Server = http://archlinux.mirrors.ovh.net/archlinux/\$repo/os/\$arch' > /tmp/root.x86_64/etc/pacman.d/mirrorlist | 117 | echo 'Server = http://archlinux.mirrors.ovh.net/archlinux/\$repo/os/\$arch' > /tmp/root.x86_64/etc/pacman.d/mirrorlist |
118 | 118 | ||
119 | DEVICE_STR=\$(cat /proc/mounts | grep "/dev/sd.. /mnt/") | 119 | DEVICE_STR=\$(cat /proc/mounts | grep "/dev/[sv]d.. /mnt/") |
120 | DEVICE=\$(echo "\$DEVICE_STR" | cut -d' ' -f1) | 120 | DEVICE=\$(echo "\$DEVICE_STR" | cut -d' ' -f1) |
121 | MOUNTPOINT=\$(echo "\$DEVICE_STR" | cut -d' ' -f2) | 121 | MOUNTPOINT=\$(echo "\$DEVICE_STR" | cut -d' ' -f2) |
122 | 122 | ||
@@ -201,7 +201,7 @@ puppet apply --test \$CODE_PATH/manifests/site.pp | |||
201 | EOF | 201 | EOF |
202 | 202 | ||
203 | cat > $ARCH_HOST_PUPPET_CONFIGURATION_SCRIPT <<EOF | 203 | cat > $ARCH_HOST_PUPPET_CONFIGURATION_SCRIPT <<EOF |
204 | DEVICE_STR=\$(cat /proc/mounts | grep "/dev/sd.. /mnt/") | 204 | DEVICE_STR=\$(cat /proc/mounts | grep "/dev/[sv]d.. /mnt/") |
205 | DEVICE=\$(echo "\$DEVICE_STR" | cut -d' ' -f1) | 205 | DEVICE=\$(echo "\$DEVICE_STR" | cut -d' ' -f1) |
206 | MOUNTPOINT=\$(echo "\$DEVICE_STR" | cut -d' ' -f2) | 206 | MOUNTPOINT=\$(echo "\$DEVICE_STR" | cut -d' ' -f2) |
207 | 207 | ||