Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doinst copies the whole USB drive #17

Open
Debilski opened this issue Aug 24, 2023 · 4 comments
Open

doinst copies the whole USB drive #17

Debilski opened this issue Aug 24, 2023 · 4 comments

Comments

@Debilski
Copy link
Member

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
Copy link
Collaborator

keszybz commented Aug 24, 2023

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

@Debilski
Copy link
Member Author

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

@Debilski
Copy link
Member Author

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
Copy link
Member Author

@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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants