<div dir="ltr">Hey Leam,<div><br></div><div>I wrote some installation scripts for Arch some time ago. Some of those scripts use sgdisk and sfdisk to automagically create disk partitions according to your taste (interactively determined) and then install the distro. </div><div><br></div><div>I'm sending a link to "Archtail", the script I use myself for my own machines. (It uses whiptail as a front end.) But if you look for the <i>part_disk</i> function around line 721 it should give you another example of how you could do this. Here's the link:</div><div><br></div><div><a href="https://github.com/deepbsd/Archtail/blob/master/archtail.sh">https://github.com/deepbsd/Archtail/blob/master/archtail.sh</a><br></div><div><br></div><div>Oh, never mind on the crypt_setup function. It doesn't work. But the rest of the stuff does! Been using it for a pretty long time. I hope this helps!</div><div><br></div><div>Dave</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Jan 20, 2023 at 2:11 PM Leam Hall via Ale <<a href="mailto:ale@ale.org">ale@ale.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Everything I've looked at, parted, fdisk, sfdisk, seems to either want to be interactive, or doesn't explain how to turn the whole disk into a partition. Any suggestions?<br>
<br>
Ideally this will go into an ansible script, but I'm trying to make it work by hand first.<br>
<br>
Leam<br>
-- <br>
Automation Engineer (<a href="http://reuel.net/resume" rel="noreferrer" target="_blank">reuel.net/resume</a>)<br>
Scribe: The Domici War (<a href="http://domiciwar.net" rel="noreferrer" target="_blank">domiciwar.net</a>)<br>
General Ne'er-do-well (<a href="http://github.com/LeamHall" rel="noreferrer" target="_blank">github.com/LeamHall</a>)<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org" target="_blank">Ale@ale.org</a><br>
<a href="https://mail.ale.org/mailman/listinfo/ale" rel="noreferrer" target="_blank">https://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" rel="noreferrer" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div>