LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-17-2013, 05:22 AM   #1
bombuzal
LQ Newbie
 
Registered: May 2010
Distribution: Debian,Centos,Ubuntu
Posts: 9

Rep: Reputation: 0
Preseeding issues with partitioning in Wheezy


I have an issue with creating partitions when installing Wheezy from preseed file.
When I run the procedure, everything that gets created is one large partition for / which takes the complete disk. I wanted a / with the maximum size of 9G, and the rest would be unpartitioned (later it gets an LVM volume manually). Experimenting, I added a swap partition and a separate /home, which I will delete later. But nothing gets done except big root. Can someone look into it? The complete file is:
Code:
d-i debian-installer/locale string en_US
d-i localechooser/supported-locales multiselect en_US.UTF-8, hr

d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i console-keymaps-at/keymap select us
d-i keymap select us
d-i debian-installer/keymap string us

d-i netcfg/choose_interface select auto
d-i netcfg/link_detection_timeout string 15
d-i netcfg/hostname string pxeinstalled  
d-i netcfg/hostname seen false  
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.hr.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

d-i save-logs/directory string /mnt

# user part
d-i passwd/root-login boolean false
## d-i passwd/root-password-crypted password $1$zrandom5t1
d-i passwd/user-fullname string My FullName
d-i passwd/username string myname

d-i passwd/user-password-crypted password $1$bUrandomx20
d-i passwd/user-default-groups string sudo

d-i time/zone string Europe/Zagreb

#PARTITIONING 

d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
d-i partman/confirm_nooverwrite boolean true
#d-i partman-lvm/device_remove_lvm boolean true
#d-i partman-md/device_remove_md boolean true

# http://ftp.dc.volia.com/pub/debian/preseed/partman-auto-recipe.txt
# 7G minimum, 9G max

d-i partman-auto/expert_recipe string root ::      \
        7000 8999 9000 ext3 \
        $primary{ } \
        $bootable{ } \
        method{ format } \
        format{ } \
        use_filesystem{ } \
        filesystem{ ext3 } \
        mountpoint{ / } .

4096 512 50% linux-swap \
        method{ swap } \
        format{ } .

        10000 100 10000000 ext3 \
        method{ format } \
        format{ } \
        use_filesystem{ } \
        filesystem{ ext3 } \
        mountpoint{ /mnt } .

d-i partman-auto/choose_recipe select root
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/mount_style select traditional

# Skip question about not having swap partition
partman-basicfilesystems partman-basicfilesystems/no_swap boolean false


tasksel tasksel/first multiselect
d-i pkgsel/include string \
     openssh-server sudo lvm2 ntp vim curl # postinst  #etckeeper puppet

d-i popularity-contest popularity-contest/participate boolean false

d-i preseed/late_command string \
  chroot /target sh -c "/usr/bin/curl -o /tmp/postinst.sh http://local.ip.addr/postinst.sh && /bin/sh -x /tmp/postinst.sh"
Furthermore, the installer still asks for keyboard. Not a big deal, but it bugs me. This is PXE entry.
append initrd=DEBIAN/amd64/initrd.gz locale=hr setup/layoutcode=en_US console-setup/layoutcode=us netcfg/get_hostname=pxebooted auto=true priority=critical preseed/url=http://ip.addr./preseed.cfg interface=eth0

Saving of debug logs also doesn't work, but I catch them on host (not /target) and copy them to the /target.

I also want to ask me the hostname, d-i netcfg/hostname string pxeinstalled
d-i netcfg/hostname seen false
, but it doesn't ask me... Lots of small issues...

I must add a user to "sudo" group, or I won't be able to become super user (root is not able to log in).
 
Old 09-19-2013, 07:17 AM   #2
bombuzal
LQ Newbie
 
Registered: May 2010
Distribution: Debian,Centos,Ubuntu
Posts: 9

Original Poster
Rep: Reputation: 0
Whatever the solution is, I found more advanced recipe which is basically exactly what I wanted, small root partition, and other on lvm

Quote:
d-i partman-auto/expert_recipe string \
boot-root :: \
7000 50 9000 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext3 } \
mountpoint{ / } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ first } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /mnt } \
. \
10000 50 10000 ext4 \
$defaultignore{ } \
$lvmok{ } \
lv_name{ var } \
method{ format } \
format{ } \
use_filesystem{ } \
filesystem{ ext4 } \
mountpoint{ /misc } \
.
It still isn't perfect because the second logical volume is created with maximum size although the sizes and priorities of both are identical.
Other issues aren't solved (keyboard, asking for hostname...) so I'm leaving this thread as not solved, maybe someone shows up.
 
  


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
Upgrade to Wheezy - Redmine / Ruby issues tomehb Debian 2 11-29-2012 04:20 AM
Preseeding debconf questions/answers k3lt01 Debian 0 01-03-2012 06:19 PM
[SOLVED] Preseeding lonesoac0 Linux - Desktop 6 03-29-2010 08:03 PM
preseeding? plesaleza Debian 8 08-22-2007 06:04 PM
Partitioning issues fedetxf Linux - General 2 11-20-2003 05:55 AM

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

All times are GMT -5. The time now is 06:33 AM.

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