LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-06-2014, 08:04 PM   #1
karlito139
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Rep: Reputation: Disabled
Partitioning in preseed


Hello,


I would like to create a preseed of debian that is going to create 3 partitions :
- a ext4 of around 8G mounted at /
- a swap of 1G
- the rest forming a partition not mounted.

I can't get to configure that last partition. I suppose that I should be using the method{ keep } in partman but I was not able to make it work.


Here is my current preseed configuration (with that last partition mounted to make it work) :
Code:
# ----------------------------------------------------------------- #
# Related documentation:                                            #
# -> Debian GNU/Linux Installation Guide                            #
#    -> Appendix B. Automating the installation using preseeding    #
#       -> B.4. Contents of the preconfiguration file (for wheezy)  #
#          | http://debian.org/releases/stable/amd64/apbs04.html.en #
# ----------------------------------------------------------------- #

### B.4.1. Localization
# d-i debian-installer/locale string
# d-i keyboard-configuration/xkb-keymap select

# Scan another CD or DVD?
apt-cdrom-setup apt-setup/cdrom/set-first       boolean false


### B.4.2. Network configuration
# d-i netcfg/choose_interface select
# d-i netcfg/get_domain string
# d-i netcfg/get_hostname string
# d-i netcfg/hostname string
d-i netcfg/wireless_wep string

### B.4.3. Network console
# ~

### B.4.4. Mirror settings
d-i mirror/country string manual
d-i mirror/http/directory string /debian
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/proxy string
d-i mirror/suite string wheezy

### B.4.5. Account setup
d-i passwd/make-user boolean true
d-i passwd/root-login boolean true
# d-i passwd/root-password password
# d-i passwd/root-password-again password
# d-i passwd/user-default-groups string
# d-i passwd/user-fullname string
# d-i passwd/user-password password
# d-i passwd/user-password-again password
# d-i passwd/username string

### B.4.6. Clock and time zone setup
d-i clock-setup/ntp boolean true
d-i clock-setup/utc boolean true
d-i time/zone string UTC






### Partitioning
#d-i partman-auto/disk string /dev/sda
#d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string                   \
        root :: 7500 50 8500 ext4 \
        $primary{ } $bootable{ } method{ format } \
        format{ } use_filesystem{ } filesystem{ ext4 } \
        mountpoint{ / } \
    . \
    1024 90 1024 linux-swap \
        $primary{ } method{ swap } format{ } \
    . \
    100 100 10000000000 ext4 \
        $primary{ } method{ format } \
        format{ } use_filesystem{ } filesystem{ ext4 } \
        mountpoint{ /data } \
    .                                           \
#d-i partman-auto/method string regular
#d-i partman-auto/choose_recipe select atomic
#d-i partman-partitioning/confirm_write_new_label boolean true
#d-i partman/choose_partition select finish
#d-i partman/confirm boolean true
#d-i partman/confirm_nooverwrite boolean true




### B.4.7. Partitioning
d-i partman-auto/choose_recipe select atomic
d-i partman-auto/method string regular
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true





### B.4.8. Base system installation
# ~

### B.4.9. Apt setup
d-i apt-setup/contrib boolean true
d-i apt-setup/non-free boolean true
d-i apt-setup/use_mirror boolean false

### B.4.10. Package selection
d-i pkgsel/include string openssh-server sudo
d-i pkgsel/upgrade select none
popularity-contest popularity-contest/participate boolean false
tasksel tasksel/first multiselect standard

### B.4.11. Boot loader installation
d-i grub-installer/only_debian boolean true
#d-i grub-pc/install_devices multiselect /dev/sda

### B.4.12. Finishing up the installation
d-i finish-install/reboot_in_progress note

### B.4.13. Preseeding other packages
# ~
Does anyone know how to use the method keep, or have a idea on how to go around that issue.


Thanks a lot.

Have a nice day.
 
Old 06-07-2014, 05:22 PM   #2
karlito139
LQ Newbie
 
Registered: Aug 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
The solution turn out to be : don't specify any mountpoint.

Code:
    100 100 10000000000 ext4 \
        $primary{ } method{ format } \
        format{ } use_filesystem{ } filesystem{ ext4 } \
        mountpoint{}			\
But you need to add after that the lines :

Code:
d-i partman-basicfilesystems/no_mount_point boolean true
d-i partman-basicfilesystems/no_mount_point yes
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Installation - preseed / partman not partitioning disk gr8rcake Ubuntu 10 12-07-2011 01:21 AM
Partitioning using preseed the_gripmaster Ubuntu 3 12-05-2011 07:38 AM
Linux partitioning using 'preseed.cfg' file eliote Programming 8 12-22-2010 01:55 AM
Ubuntu Preseed not found Curtor Ubuntu 1 09-12-2008 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration