Bug#284289: partial preseeding after manual partman

2004-12-07 Thread Geert Stappers
On Tue, Dec 07, 2004 at 06:13:11PM +0100, maks attems wrote:
> On Tue, 07 Dec 2004, Joey Hess wrote:
> 
> > maximilian attems wrote:
> > > agreed, but the file is named 'syslinux.cfg' everywhere else in
> > > example-preseed.xml, except aboves "debconf-get-selections" line.
> > > 
> > > so better correct that occurence than introduce furture divergence.
> > > not that i care about the filename, but i guess you do. ;-)
> > 
> > No it's not. The top of the file tells how to set up your syslinux.cfg
> > for things that cannot be preseeded otherwise. This is entirely different
> > from the rest of the file which is a preseeding config file.
> 
> i apologize, geert you were right.

thanks, no hardfeelings


geert stappers


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-07 Thread maks attems
On Tue, 07 Dec 2004, Joey Hess wrote:

> maximilian attems wrote:
> > agreed, but the file is named 'syslinux.cfg' everywhere else in
> > example-preseed.xml, except aboves "debconf-get-selections" line.
> > 
> > so better correct that occurence than introduce furture divergence.
> > not that i care about the filename, but i guess you do. ;-)
> 
> No it's not. The top of the file tells how to set up your syslinux.cfg
> for things that cannot be preseeded otherwise. This is entirely different
> from the rest of the file which is a preseeding config file.

i apologize, geert you were right.


--
maks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#284289: partial preseeding after manual partman

2004-12-07 Thread Joey Hess
maximilian attems wrote:
> agreed, but the file is named 'syslinux.cfg' everywhere else in
> example-preseed.xml, except aboves "debconf-get-selections" line.
> 
> so better correct that occurence than introduce furture divergence.
> not that i care about the filename, but i guess you do. ;-)

No it's not. The top of the file tells how to set up your syslinux.cfg
for things that cannot be preseeded otherwise. This is entirely different
from the rest of the file which is a preseeding config file.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-07 Thread maximilian attems
On Tue, 07 Dec 2004, Geert Stappers wrote:

> On Mon, Dec 06, 2004 at 08:00:35PM +0100, maximilian attems wrote:

> > Index: installer/doc/manual/en/appendix/example-preseed.xml
> > ===
> > --- installer/doc/manual/en/appendix/example-preseed.xml(revision 24247)
> > +++ installer/doc/manual/en/appendix/example-preseed.xml(working copy)
> > @@ -312,6 +312,10 @@
> >  #   debconf-get-selections --installer > file
> >  #   debconf-get-selections >> file
>   #   debconf-get-selections --installer > preseed.cfg
>   #   debconf-get-selections >> preseed.cfg
> >  
> > +# Debconf has much stricter validity checks. It catches errors like line
> > +# wrap mistakes. You may want to check the validity of your syslinux.cfg:
> > +#   debconf-set-selections < syslinux.cfg
> > +
>  +# Debconf has much stricter validity checks. It catches errors like line
>  +# wrap mistakes. You may want to check the validity of your preseed.cfg
>  +#   debconf-set-selections < preseed.cfg
>  +
> >  # If you like, you can include other preseed files into this one.
> >  # Any settings in those files will override pre-existing settings from this
> >  # file. More that one file can be listed, separated by spaces; all will be
> 
> If the usefull test hint makes it into the manual,
> then please use consistent filenames.

agreed, but the file is named 'syslinux.cfg' everywhere else in
example-preseed.xml, except aboves "debconf-get-selections" line.

so better correct that occurence than introduce furture divergence.
not that i care about the filename, but i guess you do. ;-)
 

--
maks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#284289: partial preseeding after manual partman

2004-12-07 Thread Geert Stappers
On Mon, Dec 06, 2004 at 08:00:35PM +0100, maximilian attems wrote:
> On Mon, 06 Dec 2004, Joey Hess wrote:
> 
> > Your preseed.cfg is misformatted:
> > 
> > [EMAIL PROTECTED]:~>debconf-set-selections < preseed.cfg
> > error: parse error on line 267: 'ent and received directly using SMTP'
> > zsh: exit 1 debconf-set-selections < preseed.cfg
> > 
> > This appears to be a simple line wrap mistake. Note that preseed is much
> > less picky about this than debconf-set-selections, since it's
> > implemented in a much less capable language where checking everything
> > that debconf-set-selections does would be hard.
> 
> ooh thanks for catching that!
> 
> how about belows patch to the example syslinux.cfg:
> 
> Index: installer/doc/manual/en/appendix/example-preseed.xml
> ===
> --- installer/doc/manual/en/appendix/example-preseed.xml  (revision 24247)
> +++ installer/doc/manual/en/appendix/example-preseed.xml  (working copy)
> @@ -312,6 +312,10 @@
>  #   debconf-get-selections --installer > file
>  #   debconf-get-selections >> file
  #   debconf-get-selections --installer > preseed.cfg
  #   debconf-get-selections >> preseed.cfg
>  
> +# Debconf has much stricter validity checks. It catches errors like line
> +# wrap mistakes. You may want to check the validity of your syslinux.cfg:
> +#   debconf-set-selections < syslinux.cfg
> +
 +# Debconf has much stricter validity checks. It catches errors like line
 +# wrap mistakes. You may want to check the validity of your preseed.cfg
 +#   debconf-set-selections < preseed.cfg
 +
>  # If you like, you can include other preseed files into this one.
>  # Any settings in those files will override pre-existing settings from this
>  # file. More that one file can be listed, separated by spaces; all will be

If the usefull test hint makes it into the manual,
then please use consistent filenames.


Cheers
Geert Stappers


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-06 Thread maximilian attems
On Mon, 06 Dec 2004, Joey Hess wrote:

> Your preseed.cfg is misformatted:
> 
> [EMAIL PROTECTED]:~>debconf-set-selections < preseed.cfg
> error: parse error on line 267: 'ent and received directly using SMTP'
> zsh: exit 1 debconf-set-selections < preseed.cfg
> 
> This appears to be a simple line wrap mistake. Note that preseed is much
> less picky about this than debconf-set-selections, since it's
> implemented in a much less capable language where checking everything
> that debconf-set-selections does would be hard.

ooh thanks for catching that!

how about belows patch to the example syslinux.cfg:

Index: installer/doc/manual/en/appendix/example-preseed.xml
===
--- installer/doc/manual/en/appendix/example-preseed.xml(revision 24247)
+++ installer/doc/manual/en/appendix/example-preseed.xml(working copy)
@@ -312,6 +312,10 @@
 #   debconf-get-selections --installer > file
 #   debconf-get-selections >> file
 
+# Debconf has much stricter validity checks. It catches errors like line
+# wrap mistakes. You may want to check the validity of your syslinux.cfg:
+#   debconf-set-selections < syslinux.cfg
+
 # If you like, you can include other preseed files into this one.
 # Any settings in those files will override pre-existing settings from this
 # file. More that one file can be listed, separated by spaces; all will be


--
maks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#284289: partial preseeding after manual partman

2004-12-06 Thread Joey Hess
maks attems wrote:
> all the second stage was preseeded, but the passwords.
> nevertheless i was asked all questions and shown all the notes.
> so preseeding did not work there.
> initially the preseeding worked, as i wasn't asked about the apt
> mirrors.
> 
> if you look at the sent preseed file, partman is not preseeded,
> but the other d-i questions are.
> 
> i know i should have worked out a partition recipe or used one of the 
> proposed.  time pressure made that i thought that i could use manual
> partman (nice lvm setup), but leave all the rest preseeded.

Your preseed.cfg is misformatted:

[EMAIL PROTECTED]:~>debconf-set-selections < preseed.cfg
error: parse error on line 267: 'ent and received directly using SMTP'
zsh: exit 1 debconf-set-selections < preseed.cfg

This appears to be a simple line wrap mistake. Note that preseed is much
less picky about this than debconf-set-selections, since it's
implemented in a much less capable language where checking everything
that debconf-set-selections does would be hard.

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-06 Thread maks attems
On Sun, 05 Dec 2004, Joey Hess wrote:

> maks attems wrote:
> > On Sun, 05 Dec 2004, Joey Hess wrote:
> > 
> > > What is this "preseeding path", and what symptoms make you think it's
> > > lost?
> > 
> > manual interaction aka lots of 
> > made me remember d-i before preseeding.
> 
> That's not how preseeding works..
> 
> Do you have any specific questions that you preseeded and the preseeding
> did not work or the question was not asked?

all the second stage was preseeded, but the passwords.
nevertheless i was asked all questions and shown all the notes.
so preseeding did not work there.
initially the preseeding worked, as i wasn't asked about the apt
mirrors.

if you look at the sent preseed file, partman is not preseeded,
but the other d-i questions are.

i know i should have worked out a partition recipe or used one of the 
proposed.  time pressure made that i thought that i could use manual
partman (nice lvm setup), but leave all the rest preseeded.

--
maks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#284289: partial preseeding after manual partman

2004-12-05 Thread Joey Hess
maks attems wrote:
> On Sun, 05 Dec 2004, Joey Hess wrote:
> 
> > What is this "preseeding path", and what symptoms make you think it's
> > lost?
> 
> manual interaction aka lots of 
> made me remember d-i before preseeding.

That's not how preseeding works..

Do you have any specific questions that you preseeded and the preseeding
did not work or the question was not asked?

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-05 Thread Geert Stappers
On Sun, Dec 05, 2004 at 10:53:06PM +0100, maks attems wrote:
> On Sun, 05 Dec 2004, Joey Hess wrote:
> 
> > What is this "preseeding path", and what symptoms make you think it's
> > lost?
> 
> manual interaction aka lots of 
> made me remember d-i before preseeding.

/me thinks that debconf_priority is changed
and that submitter thinks it is called preseeding.


HTH
Geert Stappers


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-05 Thread maks attems
On Sun, 05 Dec 2004, Joey Hess wrote:

> What is this "preseeding path", and what symptoms make you think it's
> lost?

manual interaction aka lots of 
made me remember d-i before preseeding.

--
maks



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#284289: partial preseeding after manual partman

2004-12-05 Thread Joey Hess
maximilian attems wrote:
> due to lack of time i didn't specify any partman preseeding.
> apt-mirror worked like expected, but after manual partitioning
> the preseeding path was lost.
> 
> as i was really in rush i don't remember when exactly the preseeding
> path was lost, i'm really shure that 2stage wasn't preseeded.
> the attached preseed.cfg was used. 

What is this "preseeding path", and what symptoms make you think it's
lost?

-- 
see shy jo


signature.asc
Description: Digital signature


Bug#284289: partial preseeding after manual partman

2004-12-05 Thread maximilian attems
Package: preseed
Severity: minor
Tags: d-i

used the pxe booting of rc2 netboot.tar.gz 
added to the kernel cli in pxelinux.cfg/default:
preseed/url=http://brane.itp.tuwien.ac.at/preseed.cfg 
languagechooser/language-name=English countrychooser/shortlist=AT 
console-keymaps-at/keymap=de

the network conf was done by dhcpd.

due to lack of time i didn't specify any partman preseeding.
apt-mirror worked like expected, but after manual partitioning
the preseeding path was lost.

as i was really in rush i don't remember when exactly the preseeding
path was lost, i'm really shure that 2stage wasn't preseeded.
the attached preseed.cfg was used. 

--
maks

 Modifying syslinux.cfg.

# Edit the syslinux.cfg (or similar) file, and add parameters to the end
# of the append line(s) for the kernel.
#
# You'll at least want to add a parameter telling the installer where to
# get its preseed file from.
# If you're installing from USB media, use this, and put the preseed file
# in the toplevel directory of the USB stick.
#   preseed/file=/hd-media/preseed
# If you're netbooting, use this instead:
#   preseed/url=http://host/path/to/preseed
# If you're remastering a CD, you could use this:
#   preseed/file=/cdrom/preseed
# Be sure to copy this file to the location you specify.
# 
# While you're at it, you may want to throw a debconf/priority=critical in
# there, to avoid most questions even if the preseeding below misses some.
# And you might set the timeout to 1 in syslinux.cfg to avoid needing to hit
# enter to boot the installer.
#
# Language, country, and keyboard selection cannot be preseeded from a file,
# because the questions are asked before the preseed file can be loaded.
# Instead, to avoid these questions, pass some more parameters to the kernel:
#
#languagechooser/language-name=English
#countrychooser/shortlist=US
#console-keymaps-at/keymap=us
#
# Note that the kernel accepts a maximum of 8 command line options and
# 8 environment options (including any options added by default for the
# installer). If these numbers are exceeded, 2.4 kernels will drop any
# excess options and 2.6 kernels will panic.
# Some of the default options, like 'vga=normal' and 'devfs=mount' may be
# safely removed for most installations, which may allow you to add more
# options for preseeding.

 Shell commands.

# d-i preseeding is inherently not secure. Nothing in the installer checks
# for attempts at buffer overflows or other exploits of the values of a
# preseed file like this one. Only use preseed files from trusted
# locations! To drive that home, and because it's generally useful, here's
# a way to run any shell command you'd like inside the installer,
# automatically.

# This first command is run as early as possible, just after
# preseeding is read.
#d-ipreseed/early_command   string wget http://url/to/my.udeb -O 
/tmp/my.udeb ; udpkg -i /tmp/my.udeb
# This command is run just before the install finishes, but when there is
# still a usable /target directory.
#d-ipreseed/late_commandstring for deb in /hd-media/*.deb; do 
cp $deb /target/tmp; chroot /target dpkg -i /tmp/$(basename $deb); done
# This command is run just as base-config is starting up.
#base-configbase-config/early_command   string echo hi mom
# This command is run after base-config is done, just before the login:
# prompt. This is a good way to install a set of packages you want, or to
# tweak the configuration of the system.
#base-configbase-config/late_commandstring apt-get install zsh; 
chsh -s /bin/zsh
base-config base-config/late_commandstring apt-get install vim 
libgmp3 openoffice.org lyx maxima x-window-system-core ntp mozilla a2ps 
tetex-extra apache2 rsync lprng sudo gdm munin-node popularity-contest

 Network configuration.

# Of course, this won't work if you're loading your preseed file from the
# network! But it's great if you're booting from CD or USB stick. You can
# also pass network config parameters in on the kernel params if you are
# loading preseed files from the network.

# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
#d-inetcfg/choose_interface select auto

# If you prefer to configure the network manually, here's how:
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_nameservers  string 128.130.2.3
d-i netcfg/get_ipaddressstring 128.131.48.197
d-i netcfg/get_netmask  string 255.255.255.0
d-i netcfg/get_gateway  string 128.131.48.1
d-i netcfg/confirm_static   boolean true

# Note that any hostname and domain names assigned from dhcp take
# precidence over values set here. However, setting the values still
# prevents the questions from being shown even if values come from dhcp.
d-i netcfg/get_hostname string ghost
d-i netcfg/get_domain   string itp.tuwien.ac.at

# Disable that annoying WEP key dialog.
d-i