summaryrefslogtreecommitdiff
path: root/roles/install-grub/tasks
AgeCommit message (Collapse)Author
2024-01-08ansible remove legacy shell ars warningViacheslav Hletenko
On the newest systems like Debian12 the asnible shell args: warn is legacy It cause of ``` TASK [install-grub : Mount and bind /dev /proc /sys and /mnt/wroot/boot to /mnt/inst_root] ********************************************************************************************** fatal: [localhost]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (ansible.legacy.command) module: warn. Supported parameters include: _raw_params, _uses_shell, argv, chdir, creates, executable, removes, stdin, stdin_add_newline, strip_empty_ends."} ``` Delete args: warn
2022-03-16T4278: Use overlayfs instead of aufsYuya Kusakabe
2021-03-15Added partition table type select option (MBR/GPT/hybrid)zsdc
Since some of the build target platforms do not support hybrid partition table and require only MBR (AWS AMI), was added option that allows selecting a partition table type: ``` -e parrtable_type=type ``` where `type` can be one of: `mbr`, `gpt`, `hybrid`. Default value is `hybrid`.
2020-10-08minor fixescreate with ansible
2020-10-08minor fixescreate with ansible
2020-05-26Fixes for the images building processzsdc
- Fixed GRUB installation on UEFI hosts. On UEFI machines GRUB will try to install EFI version by default, so we need to set `--target` on i386-pc version too; - Fixed /dev/mapper devices unmounting, removing, and loopback detach. `kpartx -d` does not detach devices from `/dev/mapper` at least in a testing environment (Debian Buster inside Docker). That why we need to run `dmsetup remove` directly for this. The same with a loopback device. If not do this, resources will be busy and all builds except the first one may fail; - Deleted hybrid MBR creating task. It has a wrong syntax and does not work, and it looks like it is needless anyway.
2020-04-29Build BIOS/UEFI Hybrid Imageskroy
2020-02-20QEMU image build improvementszsdc
* Added missed package dependencies (for Debian 10 based builders) * Added additional options, which can be passed to the playbook: * iso_local - path to local ISO file * disk_size - target disk image size * cloud_init - enable or disable Cloud-init integration to an image * cloud_init_ds - set custom list of data sources for Cloud-init * Added a version number and Cloud-init mark to a QCOW2 image name * Cloud-init installation procedure tuned to use packages from a proper one VyOS repository, according to VyOS and Debian version * Added workaround for /etc/network/interfaces to allow Cloud-init initialize network in a native way * Replaced default config file to Jinja2 template * Fixed GRUB installation on UEFI builders - added target i386-pc * Replaced GRUB configuration: * enable both KVM and Serial console for all images (Serial by default) * added password recovery option for all images * added 5 seconds of a timeout to allow select proper menu entry * fixed booting for 1.3 VyOS * Added loop device detach after image build - allows to build images multiple times without exhausting loop device limit * Added fstrim applying for image - theoretically, this may save some space * Enabled compression for QCOW2 image - this reduces image size significantly * Added RAW image deletion after conversion to more accurate cleanup
2018-06-28Cleanup playbookYuya Kusakabe