tech and other rants

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

debian/ubuntu swap question

For Ubuntu kickseed the line is similar:

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

6 Responses to “debian preseed with no swap”

  • mustafa
    June 27th, 2012 at 9:26 am

    Thanks! Was looking for this for an hour really helped!

  • Zen
    June 27th, 2012 at 9:34 am

    Your welcome! 🙂

  • vivek
    August 17th, 2012 at 12:38 am

    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 —

  • Chris
    July 22nd, 2013 at 5:00 am

    Very helpful, thanks

  • pixel
    September 9th, 2015 at 10:33 am

    how did you find this out? is there a reference?

  • mboeru
    September 9th, 2015 at 2:18 pm

    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 🙂

Leave a Reply