arch-boxes merge requestshttps://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests2021-01-31T07:22:12Zhttps://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/160Make disk size configurable per image2021-01-31T07:22:12ZKristian KlausenMake disk size configurable per image```
Shrink the cloud image to the bare minimum (2GB)
cloud-init resizes the disk[1] so we don't need a "big disk" with a lot
of unused space + some cloud providers charges for the unused space +
some cloud providers offers VM with disk ...```
Shrink the cloud image to the bare minimum (2GB)
cloud-init resizes the disk[1] so we don't need a "big disk" with a lot
of unused space + some cloud providers charges for the unused space +
some cloud providers offers VM with disk < 20GB.
[1] https://cloudinit.readthedocs.io/en/latest/topics/modules.html#growpart
Fix #127
```
```
Expand the basic disk image from 20G -> 40G
It is meant for local usage so the disk should be "big enough".
```https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/159Use --reflink=always when copying the fallback initramfs2021-01-31T03:23:33ZKristian KlausenUse --reflink=always when copying the fallback initramfsIt saves us ~20MB.It saves us ~20MB.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/158Add basic image2021-01-31T05:33:43ZKristian KlausenAdd basic imageIt is similar to the cloud-image but it comes with a preconfigured arch
user (pw: arch) and lacks cloud-init.It is similar to the cloud-image but it comes with a preconfigured arch
user (pw: arch) and lacks cloud-init.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/157clarify arch default user in README.md (fixes #130)2021-01-30T22:34:08ZMichael Vorburger.chclarify arch default user in README.md (fixes #130)https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/156Fix swapfile "insecure permissions"2021-01-29T13:35:44ZKristian KlausenFix swapfile "insecure permissions"This isn't really necessary as /swap is mode 0700, but a warning is
logged in the journal[1], so let's set /swap/swapfile to mode 0600 and
get rid of the warning.
[1] swapon[189]: swapon: /swap/swapfile: insecure permissions 0644, 0600 ...This isn't really necessary as /swap is mode 0700, but a warning is
logged in the journal[1], so let's set /swap/swapfile to mode 0600 and
get rid of the warning.
[1] swapon[189]: swapon: /swap/swapfile: insecure permissions 0644, 0600 suggested.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/155Fix boot issues caused by missing modules in the initramfs2021-01-28T23:52:03ZKristian KlausenFix boot issues caused by missing modules in the initramfs```
The mkinitcpio autodetect hook removes modules not needed by the
running system from the initramfs. This make the image non-bootable
on some systems as initramfs lacks the relevant kernel modules.
Ex: Some systems need the virtio-scs...```
The mkinitcpio autodetect hook removes modules not needed by the
running system from the initramfs. This make the image non-bootable
on some systems as initramfs lacks the relevant kernel modules.
Ex: Some systems need the virtio-scsi kernel module and not the
"autodetected" virtio-blk kernel module for disk access.
So for the initial install we use the fallback initramfs, and
"autodetect" should add the relevant modules to the initramfs when
the user updates the kernel.
```https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/154Do explicit mirror resolve with curl2021-01-05T05:16:30ZKristian KlausenDo explicit mirror resolve with curlhost suddenly doesn't understands hostname with https://. I'm not sure
it did before, it could be DNS server doing some magic.host suddenly doesn't understands hostname with https://. I'm not sure
it did before, it could be DNS server doing some magic.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/153Verify vagrant public SSH key2020-12-13T01:10:05ZKristian KlausenVerify vagrant public SSH keyhttps://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/152Use source for sourcing instead of .2020-12-13T00:41:10ZKristian KlausenUse source for sourcing instead of .It improves readability according to some..It improves readability according to some..https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/151Only run the "build" job on runner with fast-single-thread2020-12-11T11:27:28ZKristian KlausenOnly run the "build" job on runner with fast-single-threadSome of our runners is vey slow and building on them takes +1 hour and
we need to adjust many of the timeouts, so let's just build on the fast
runners.Some of our runners is vey slow and building on them takes +1 hour and
we need to adjust many of the timeouts, so let's just build on the fast
runners.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/150Bump timeout for initial serial read (30s->60s)2020-12-10T13:50:05ZKristian KlausenBump timeout for initial serial read (30s->60s)TCG is slow and hitting the timeout under initial boot isn't uncommon.TCG is slow and hitting the timeout under initial boot isn't uncommon.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/149Use stub-resolv.conf for /etc/resolv.conf2020-12-10T11:58:08ZDavid RungeUse stub-resolv.conf for /etc/resolv.confbuild-inside-vm.sh:
Change the source of `/etc/resolv.conf` to point to
`/run/systemd/resolve/stub-resolv.conf`, as it provides support for
per-interface resolving [1].
Fixes #123
[1] https://www.freedesktop.org/software/systemd/man/sy...build-inside-vm.sh:
Change the source of `/etc/resolv.conf` to point to
`/run/systemd/resolve/stub-resolv.conf`, as it provides support for
per-interface resolving [1].
Fixes #123
[1] https://www.freedesktop.org/software/systemd/man/systemd-resolved.service.html#/etc/resolv.confhttps://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/148Increase reflector speed2020-12-01T12:29:09ZDavid RungeIncrease reflector speedhttp/install-common.sh:
Instead of `--age 12` use `--latest 20` as parameter to `reflector`
which brings down the mirrorlist creation from over two minutes to about
12s.
Fixes #122http/install-common.sh:
Instead of `--age 12` use `--latest 20` as parameter to `reflector`
which brings down the mirrorlist creation from over two minutes to about
12s.
Fixes #122https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/147Order pacman-init and reflector-init before cloud-final2020-12-01T11:05:46ZDavid RungeOrder pacman-init and reflector-init before cloud-finalhttp/install-common.sh:
Order pacman-init.service and reflector-init.service before
cloud-final.service, as the latter may install packages using pacman and
will introduce a broken pacman keyring if started simultaneously with
pacman-ini...http/install-common.sh:
Order pacman-init.service and reflector-init.service before
cloud-final.service, as the latter may install packages using pacman and
will introduce a broken pacman keyring if started simultaneously with
pacman-init.service.
The mirrorlist should be set before cloud-final.service is running, so
that pacman can use it.
.gitlab-ci.yml:
When testing the cloud image using cloud-init:
* Use the `packages` and `runcmd` directives to install packages using
cloud-init (which is done during `cloud-final.service`).
* Check for packages installed via cloud-init.
* Write a test file to disk and check for its existence.
Fixes #121Sven-Hendrik Haasesvenstaro@archlinux.orgSven-Hendrik Haasesvenstaro@archlinux.orghttps://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/146Merge http/* into build-inside-vm.sh2020-12-12T23:59:13ZKristian KlausenMerge http/* into build-inside-vm.shI really want to refactor some of the code. `build-inside-vm.sh` is getting big (357 lines).I really want to refactor some of the code. `build-inside-vm.sh` is getting big (357 lines).https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/145Add libisoburn as dependency for xorriso2020-11-08T23:24:10ZjuaddeAdd libisoburn as dependency for xorrisoHello there,
Just to add in the readme the need of libisoburn to run ./build-host (Tried to build on my host and I had an error as xorriso was not installed on my system).Hello there,
Just to add in the readme the need of libisoburn to run ./build-host (Tried to build on my host and I had an error as xorriso was not installed on my system).https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/143Activate qemu-ga.service in cloud image2020-11-02T23:17:48ZDavid RungeActivate qemu-ga.service in cloud imagebuild-inside-vm.sh:
As the qemu-guest-agent package is installed in the cloud image, the
qemu-ga.service that it provides needs to be enabled to provide
integration with e.g. libvirt.build-inside-vm.sh:
As the qemu-guest-agent package is installed in the cloud image, the
qemu-ga.service that it provides needs to be enabled to provide
integration with e.g. libvirt.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/141Readd "remove machine-id" logic2020-10-15T06:31:16ZKristian KlausenReadd "remove machine-id" logicEven though the system isn't booted, a machine-id is generated when
systemd is installed (by the .install script).
Fixes: 0b60f5a ("Remove "remove machine-id" logic")
Fix #117Even though the system isn't booted, a machine-id is generated when
systemd is installed (by the .install script).
Fixes: 0b60f5a ("Remove "remove machine-id" logic")
Fix #117https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/140Always save artifacts2020-10-12T16:31:24ZSven-Hendrik Haasesvenstaro@archlinux.orgAlways save artifactsThis is helpful for checking out the results of merge requests, for instance.This is helpful for checking out the results of merge requests, for instance.https://gitlab.archlinux.org/archlinux/arch-boxes/-/merge_requests/139change disk size 2->20GB2020-10-12T15:06:19ZGreyson Christoforochange disk size 2->20GBadresses https://gitlab.archlinux.org/archlinux/arch-boxes/-/issues/116
Closes #116adresses https://gitlab.archlinux.org/archlinux/arch-boxes/-/issues/116
Closes #116Sven-Hendrik Haasesvenstaro@archlinux.orgKristian KlausenSven-Hendrik Haasesvenstaro@archlinux.org