mirror of
https://github.com/elasticdog/packer-arch.git
synced 2026-07-17 16:36:26 +00:00
Tweak formatting for consistency with project conventions
Just to have the style match across all files in the project.
This commit is contained in:
parent
227f42add6
commit
45fe1a10d0
1 changed files with 4 additions and 5 deletions
|
|
@ -3,11 +3,10 @@
|
|||
# stop on errors
|
||||
set -eu
|
||||
|
||||
if [[ "$PACKER_BUILDER_TYPE" == "qemu" ]]
|
||||
then
|
||||
DISK='/dev/vda'
|
||||
if [[ $PACKER_BUILDER_TYPE == "qemu" ]]; then
|
||||
DISK='/dev/vda'
|
||||
else
|
||||
DISK='/dev/sda'
|
||||
DISK='/dev/sda'
|
||||
fi
|
||||
|
||||
FQDN='vagrant-arch.vagrantup.com'
|
||||
|
|
@ -48,7 +47,7 @@ echo '==> Bootstrapping the base installation'
|
|||
/usr/bin/pacstrap ${TARGET_DIR} base base-devel
|
||||
/usr/bin/arch-chroot ${TARGET_DIR} pacman -S --noconfirm gptfdisk openssh syslinux
|
||||
/usr/bin/arch-chroot ${TARGET_DIR} syslinux-install_update -i -a -m
|
||||
/usr/bin/sed -i "s,sda3,${ROOT_PARTITION##/dev/}," "${TARGET_DIR}/boot/syslinux/syslinux.cfg"
|
||||
/usr/bin/sed -i "s|sda3|${ROOT_PARTITION##/dev/}|" "${TARGET_DIR}/boot/syslinux/syslinux.cfg"
|
||||
/usr/bin/sed -i 's/TIMEOUT 50/TIMEOUT 10/' "${TARGET_DIR}/boot/syslinux/syslinux.cfg"
|
||||
|
||||
echo '==> Generating the filesystem table'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue