ASPP / installation

Ansible scripts for VM preparation
0 stars 2 forks source link

doinst copies the whole USB drive #17

Open Debilski opened 1 year ago

Debilski commented 1 year ago

The doinst script does a full dd if=/dev/usb-stick of=/dev/local-drive which can be a bit excessive depending on the size of the stick.

keszybz commented 1 year ago

I added a hacky solution that just limits the size for now. This whole thing needs rethinking ;(

Debilski commented 1 year ago

Yeah, I mean it is not an urgent issue but potentially annoying.

Debilski commented 3 months ago

Suggestion:

We use a USB boot stick that is separate from the full ASPP image. It could be the full image but it is simply not needed. A normal GRML will do or a separate, simple mkosi config.

Our install image is placed onto that USB image in a plain raw image file and stored in /root/images/aspp.xxx.raw

doinst finds that image or shows a selection TUI and runs systemd-repart --dry-run=no --empty=force --copy-from=$IMAGE $TARGET_DISK

Debilski commented 3 months ago

@keszybz @otizonaizit I haven’t updated the doinst script to implement my suggestion from above yet. Should I still do that (I cannot test it currently) or do you have your own plans with how it will be done this time?