Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
0
rated 0 times [  0] [ 0]  / answers: 1 / hits: 664  / 3 Years ago, sun, october 10, 2021, 2:34:09

I am in the process of creating an automated Server Install using ks.cfg the entire process work fine expect for the formatting and partitioning of the disk.



I want the installer to automatically proceed by formatting and paritioning the drive no matter the status. Currently if there is an existing file system the install pauses and asks you to confirm the over write. Here is the relevant piece of the KS.cfg



#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#Disk partitioning information
part / --fstype ext4 --size 1 --grow --asprimary


Here is the menu in question:



image



I tried adding --y to the end of the part command as a guess and that didn't work. This is probably pretty simple but I have not been able to find the syntax to accomplish and I'm pretty inexperienced with Ubuntu / Linux in general.


More From » boot

 Answers
6

Thanks for help guys it got me going down the right path and narrowed down my googling to finally get me the answer. In order to answer these prompts you must utilize preseed commands for partman I added the lines below and now my KS.cfg now looks like this:


Clear the Master Boot Record


zerombr yes


Partition clearing information


clearpart --all --initlabel


Disk partitioning information


part / --fstype ext4 --size 1 --grow --asprimary


Skip question(s) about not having swap partition or overwriting the existing FS


preseed partman-lvm/device_remove_lvm boolean true


preseed partman/confirm_write_new_label boolean true


preseed partman/confirm boolean true


preseed partman/confirm_nooverwrite boolean true


preseed --owner partman-basicfilesystems partman-basicfilesystems/no_swap boolean false.


The results is that my Install media will now wipe the drive and create a new File System without any prompts no matter the state. Hope this helps others


[#21093] Monday, October 11, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;