[ale] Non-interactive disk partitioning?
David Jackson
deepbsd.ale at gmail.com
Thu Feb 16 17:43:06 EST 2023
Hey Leam,
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.
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
*part_disk* function around line 721 it should give you another example of
how you could do this. Here's the link:
https://github.com/deepbsd/Archtail/blob/master/archtail.sh
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!
Dave
On Fri, Jan 20, 2023 at 2:11 PM Leam Hall via Ale <ale at ale.org> wrote:
> 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?
>
> Ideally this will go into an ansible script, but I'm trying to make it
> work by hand first.
>
> Leam
> --
> Automation Engineer (reuel.net/resume)
> Scribe: The Domici War (domiciwar.net)
> General Ne'er-do-well (github.com/LeamHall)
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> https://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.ale.org/pipermail/ale/attachments/20230216/23aaa1ca/attachment.htm>
More information about the Ale
mailing list