diff options
author | pico.dev <pico.dev@gmail.com> | 2020-03-11 00:40:09 +0100 |
---|---|---|
committer | pico.dev <pico.dev@gmail.com> | 2020-03-11 00:40:09 +0100 |
commit | 3b6e6f645a1c0f1968e1e95a706bbd2020a274a3 (patch) | |
tree | 3ce607b910a1abd5a20cf65caf5359fee1111e29 /packer/alis-packer-efi-btrfs-luks-lvm-systemd-aur.json | |
parent | 53fbac7168add165822816ac0a8f76ebf702422d (diff) |
systemd hangs on boot
Diffstat (limited to 'packer/alis-packer-efi-btrfs-luks-lvm-systemd-aur.json')
-rw-r--r-- | packer/alis-packer-efi-btrfs-luks-lvm-systemd-aur.json | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/packer/alis-packer-efi-btrfs-luks-lvm-systemd-aur.json b/packer/alis-packer-efi-btrfs-luks-lvm-systemd-aur.json new file mode 100644 index 0000000..d502146 --- /dev/null +++ b/packer/alis-packer-efi-btrfs-luks-lvm-systemd-aur.json @@ -0,0 +1,53 @@ +{ + "variables": { + "disk_size": "16384" + }, + "builders": [ + { + "name": "archlinux-alis-virtualbox", + "type": "virtualbox-iso", + "guest_os_type": "ArchLinux_64", + "guest_additions_mode": "attach", + "headless": false, + "http_directory": ".", + "vboxmanage": [ + ["modifyvm", "{{.Name}}", "--memory", "2048"], + ["modifyvm", "{{.Name}}", "--vram", "128"], + ["modifyvm", "{{.Name}}", "--cpus", "2"], + ["modifyvm", "{{.Name}}", "--firmware", "efi"] + ], + "disk_size": "{{user `disk_size`}}", + "hard_drive_interface": "sata", + "iso_url": "https://mirror.rackspace.com/archlinux/iso/latest/archlinux-2020.03.01-x86_64.iso", + "iso_checksum": "69f18631dd1518e1efa596497399d668e6fc63e6", + "iso_checksum_type": "sha1", + "ssh_username": "vagrant", + "ssh_password": "vagrant", + "ssh_wait_timeout": "60m", + "boot_wait": "5s", + "boot_command": [ + "<wait30s>", + "wget http://{{.HTTPIP}}:{{.HTTPPort}}/alis.conf<enter><wait1s>", + "wget http://{{.HTTPIP}}:{{.HTTPPort}}/alis.sh<enter><wait1s>", + "sed -i \"s/^FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\\\"btrfs\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^LVM=.*/LVM=\\\"true\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^PARTITION_ROOT_ENCRYPTION_PASSWORD=.*/PARTITION_ROOT_ENCRYPTION_PASSWORD=\\\"archlinux\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^PARTITION_ROOT_ENCRYPTION_PASSWORD_RETYPE=.*/PARTITION_ROOT_ENCRYPTION_PASSWORD_RETYPE=\\\"archlinux\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^BOOTLOADER=.*/BOOTLOADER=\\\"systemd\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\\\"\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^AUR=.*/AUR=\\\"yay\\\"/\" ./alis.conf<enter><wait1s>", + "sed -i \"s/^PACKAGES_AUR_OTHERS=.*/PACKAGES_AUR_OTHERS=\\\"gnucash\\\"/\" ./alis.conf<enter><wait1s>", + "chmod +x ./alis.sh<enter><wait1s>", + "./alis.sh<enter><wait3>y<wait1s><enter>", + "<wait10s><wait10s><wait10s><wait10s><wait10s><wait10s><wait10s><wait60m>" + ], + "shutdown_command": "systemctl poweroff" + } + ], + "post-processors": [ + { + "type": "vagrant", + "output": "archlinux-alis-{{.BuildName}}.box" + } + ] + }
\ No newline at end of file |