LinuxQuestions.org
Help answer threads with 0 replies.
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 02-24-2015, 01:10 PM   #1
summersab
LQ Newbie
 
Registered: Feb 2015
Posts: 23

Rep: Reputation: Disabled
Kernel preseed argument vs preseed.cfg doesn't work


*Note: I'm actually installing Kali, not Debian, but from an installer perspective, they should be identical.

I have a rather unique use case, and I'm trying to perform a zero-touch installation from an internal repository using iPXE. In my iPXE script, I am passing all of my preseed arguments as kernel parameters. I have all of them working except mirror/http/hostname=<myrepository>. I have mirror/country=manual set, but no matter what I do, the installer ignores the hostname of my internal repository, sticks to the default repository, and fails. Looking at syslog, I get:
Code:
main-menu[1589] INFO: Menu item 'choose-mirror' selected
anna-install: Queueing udeb apt-mirror-setup for later installation
choose-mirror[2038]: DEBUG: command: wget -q http://http.kali.org/kali/dists/oldstable/Release -0 - | grep -E '^(Suite|Codename):'
choose-mirror[2038]: DEBUG: command: wget -q http://http.kali.org/kali/dists/stable/Release -0 - | grep -E '^(Suite|Codename):'
choose-mirror[2038]: DEBUG: command: wget -q http://http.kali.org/kali/dists/testing/Release -0 - | grep -E '^(Suite|Codename):'
choose-mirror[2038]: INFO: mirror does not have any suite symlinks
choose-mirror[2038]: DEBUG: command: wget -q http://http.kali.org/kali/dists/kali/Release -0 - | grep -E '^(Suite|Codename):'
choose-mirror[2038]: DEBUG: command: wget -q http://http.kali.org/kali/dists/oldstable/Release -0 - | grep -E '^(Suite|Codename):'
choose-mirror[2038]: WARNING **: mirror does not support the specified release (kali)
Note that even though I passed the hostname parameter, it sticks to the default (http.kali.org). HOWEVER, I hosted a preseed.cfg on a webserver that just contains:
d-i mirror/http/hostname string <myrepository>

When I pass the preseed.cfg to the kernel without changing any other kernel parameter, the installer works just fine, takes the argument, and installs from my internal repository. Any ideas why the preseed works only from a preseed.cfg and cannot be preseeded as a kernel parameter?
 
Old 02-24-2015, 05:07 PM   #2
summersab
LQ Newbie
 
Registered: Feb 2015
Posts: 23

Original Poster
Rep: Reputation: Disabled
Let me provide a little more technical detail. Below are my kernel parameters. Note the mirror/http/hostname parameter in bold:
Code:
kernel http://192.168.0.25/kali/dists/kali/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux auto=true mirror/http/hostname=192.168.0.25 mirror/suite=kali mirror/http/proxy="" mirror/http/directory=/kali mirror/country=manual netcfg/disable_dhcp=true netcfg/get_ipaddress=192.168.0.101 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.0.1 netcfg/get_nameservers=192.168.0.1 hostname=kalipxe domain=domain.local locale=en_US keyboard-configuration/xkb-keymap=us time/zone="US/Central" passwd/root-password=toor passwd/root-password-again=toor partman-auto/method=regular partman-auto/choose_recipe=atomic partman/confirm_write_new_label=true partman/choose_partition=finish partman/confirm=true tasks="" pkgsel/include="" grub-installer/only_debian=true grub-installer/with_other_os=false finish-install=reboot popularity-contest/participate=false

initrd http://192.168.0.25/kali/dists/kali/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
That doesn't work, and it tries to boot from the default mirror instead my internal mirror that I set. Since this isn't an internet-facing system, the installer dies. However, if I host a preseed.cfg with d-i mirror/http/hostname string 192.168.0.25 and add it as a kernel parameter (in bold below), it works just fine:
Code:
kernel http://192.168.0.25/kali/dists/kali/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux auto=true url=http://192.168.0.25/preseed.cfg mirror/suite=kali mirror/http/proxy="" mirror/http/directory=/kali mirror/country=manual netcfg/disable_dhcp=true netcfg/get_ipaddress=192.168.0.101 netcfg/get_netmask=255.255.255.0 netcfg/get_gateway=192.168.0.1 netcfg/get_nameservers=192.168.0.1 hostname=kalipxe domain=domain.local locale=en_US keyboard-configuration/xkb-keymap=us time/zone="US/Central" passwd/root-password=toor passwd/root-password-again=toor partman-auto/method=regular partman-auto/choose_recipe=atomic partman/confirm_write_new_label=true partman/choose_partition=finish partman/confirm=true tasks="" pkgsel/include="" grub-installer/only_debian=true grub-installer/with_other_os=false finish-install=reboot popularity-contest/participate=false

initrd http://192.168.0.25/kali/dists/kali/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
That shouldn't make a bit of difference. What is going on? I'm tempted to file a bug report, but I wanted to have a sanity-check, first.

Thanks!
 
  


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
Partitioning in preseed karlito139 Debian 1 06-07-2014 05:22 PM
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 05:30 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