Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #172521

Re: Installation manual is too terse

From Darac Marjal <mailinglist@darac.org.uk>
Newsgroups linux.debian.user
Subject Re: Installation manual is too terse
Date 2016-09-20 11:50 +0200
Message-ID <sjpQB-1av-13@gated-at.bofh.it> (permalink)
References <sjp4e-EF-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Tue, Sep 20, 2016 at 03:59:05AM -0500, Richard Owlett wrote:
>_B.5.3. Chainloading preconfiguration files_ says in part:
># More flexibly, this runs a shell command and if it outputs the names 
>of
># preconfiguration files, includes those files.
>#d-i preseed/include_command \
>#      string if [ "`hostname`" = bob ]; then echo bob.cfg; fi
>
>How complex can the shell command be?
>Where could I find other examples?

If I'm looking in the right place AND interpreting things correctly 
(https://sources.debian.net/src/preseed/1.66/preseed.sh/?hl=76#L76), the 
preseed system runs "eval" on your string and then appends the output to 
the list of include files.

As this is run in /bin/sh, anything that's valid POSIX shell should 
work.

>
>I have a germ of an idea. I need more data before asking too detailed 
>questions.
>
>

-- 
For more information, please reread.

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Installation manual is too terse Richard Owlett <rowlett@cloud85.net> - 2016-09-20 11:00 +0200
  Re: Installation manual is too terse Darac Marjal <mailinglist@darac.org.uk> - 2016-09-20 11:50 +0200
    Re: Installation manual is too terse Richard Owlett <rowlett@cloud85.net> - 2016-09-20 13:10 +0200
      Re: Installation manual is too terse Darac Marjal <mailinglist@darac.org.uk> - 2016-09-20 13:20 +0200
        Re: Installation manual is too terse Richard Owlett <rowlett@cloud85.net> - 2016-09-20 13:50 +0200

csiph-web