3 Commits

Author SHA1 Message Date
Robert Church
7ba7c83297 debian: Allow ISO installs to proceed without user prompts
To avoid any previous ext4 file system signatures that could have been
present from previous installs, add lvcreate options to wipe signatures
and zero the first 4KiB of data in the LV. This will avoid requiring
user interaction.

 WARNING: ext4 signature detected on /dev/cgts-vg/scratch-lv at offset
 1080. Wipe it? [y/n]:

Change-Id: Ifeb0ddf193820a3e5d98006093813355d2494797
Story: 2009101
Task: 44628
Signed-off-by: Robert Church <robert.church@windriver.com>
2022-02-28 02:20:28 -05:00
Charles Short
2ab2d64966 debian: Copy /var/log directory to LVM volume.
When the image boots the LVM volume is mounted via /etc/fstab.
However it does not contain the log directories that services like
Keystone and Apache expect to be present in order for them to start.

This has a knock on affect later in bootstrap when Keystone tries
to restart the service when Keystone is started and it fails to
do so because /var/log/keystone is missing.

Test Plan:
PASS Apply patch
PASS Boot image check for /var/log/keystone.

Story: 2009221
Task: 43324

Signed-off-by: Charles Short <charles.short@windriver.com>
Change-Id: Ib716e48fba2fcf5896ca3f06fc2bae76d24aa05f
2022-02-17 15:30:35 -05:00
Robert Church
364acf2f20 debian: initramfs-ostree - Initial AIO partition/format support
Add temporary installer support for creating default filesystem
configuration for AIOs. This will create the following based on the
current AIO CentOS kickstart settings for large disks:

- Platform backup partition/filesystem
- Default physical volume and volume group for cgts-vg
- Logical volumes for log-lv and scratch-lv
- Format platform backup, log, and scratch filesystem as ext4

Test Plan (using 512G root disk):
 - PASS: Build/Install ISO
 - PASS: Observe correct partitions, physical volume, volume group,
         logical volumes present after boot
 - PASS: Reinstall ISO after successful install

Note: /etc/fstab is updated as a post-rootfs script in
base-bullseye.yaml

Story: 2009101
Task: 44398
Signed-off-by: Robert Church <robert.church@windriver.com>
Change-Id: I6fb3f5bcd26f9035327fb614a34b8fc35ea64362
2022-02-02 06:38:09 -05:00