debian preseed with no swap
October 14th, 2009 in os deploy, programming
I recently had to create an automatic vm install via pxe of debian Lenny 5.0.
I had two hdds, one for / and one for swap. Since partman cannot handle recipes with multiple hdds i had to manualy create swap with a preseed late_command: echo “;” | sfdisk /dev/sdb . Now i faced the problem that the setup was warning me of not having a swap. The next line added to preseed fixed my problem:
# Skip question about not having swap partition
partman-basicfilesystems partman-basicfilesystems/no_swap boolean false
For Ubuntu kickseed the line is similar:
preseed --owner partman-basicfilesystems partman-basicfilesystems/no_swap boolean false
Thanks! Was looking for this for an hour really helped!
Your welcome! 🙂
Just add following line ahead of preseed file partman-basicfilesystems/no_swap=false
For eg
Ubuntu-server.seed partman-basicfilesystems/no_swap=false initrd=/install/initrd.gz priority=high —
Very helpful, thanks
how did you find this out? is there a reference?
this was so long ago i can’t even remember…
What I remember is that I struggled to find this setting so i wrote it down here 🙂