LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-27-2020, 03:11 AM   #1
karteekchalla
LQ Newbie
 
Registered: Apr 2020
Posts: 3

Rep: Reputation: Disabled
Not able to understand the way the debconf variables are initialized in the preseed configuration


Recently I inherited a lab but unfortunately the person who had setup has left the organization. I am finding trouble in understanding the pxe installation flow at the point where the debconf variables are initialized in the preseed configuration.

part of preseed configuration:

Code:
### Account setup
d-i passwd/user-fullname string TEST User
d-i passwd/username string test
d-i passwd/user-password-crypted password xxxxxxxxxxxxxxxxxxxxxxxxxxx
d-i user-setup/allow-password-weak boolean true
d-i user-setup/encrypt-home boolean false

### Boot loader installation
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

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

### Custom stuff, update pre-late.sh if creating new variables
base-config      test/http/server       string 
base-config      test/ubuntu/release    string 16.04 
base-config      test/nfs/server        string 10.44.55.5
base-config      test/nfs/config        string /export/vol01/ubuntu/config
base-config      test/nis/domain        string ccd
base-config      test/nis/server        string 10.44.55.100 10.44.55.101

#### Advanced options
d-i preseed/late_command   string wget http://10.44.55.5/ubuntu/config/pre-late.sh -O /tmp/pre-late.sh; sh -x /tmp/pre-late.sh
d-i     preseed/run     string classes.sh
The above mentioned debconf variables test/ubuntu/release, test/nfs/server, test/nfs/config, test/nfs/domain and test/nis/server are being extracted and set the environment variables as shown below in the pre_late-sh script that is executed with preseed/late_command in the above preseed configuration.

Code:
#!/bin/sh

#Source debconf library
. /usr/share/debconf/confmodule

db_get test/ubuntu/release
export RELEASE="$RET"
db_get test/nfs/server
export NFS_SERVER="$RET"
db_get test/nfs/config
export NFS_CONFIG="$RET"
db_get test/nis/domain
export NIS_DOMAIN="$RET"
db_get test/nis/server
export NIS_SERVER="$RET"
I tried to google a lot about the way of initializing the debconf variables but not able to understand the way they are getting initialized here using base-config. Can someone help me to understand how is this being done?
 
  


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
Kernel preseed argument vs preseed.cfg doesn't work summersab Debian 1 02-24-2015 05:07 PM
[SOLVED] C: initialized variables? stf92 Programming 18 01-17-2014 01:29 PM
Change debconf default-value during user interaction/package-configuration? t0bias Debian 0 09-29-2013 04:45 PM
debconf: Perl may be unconfigured (Can't locate Debconf/Log.pm in @INC akulaar Linux - Software 3 08-07-2012 11:30 PM
problem with debconf and X configuration Miky Linux - General 0 02-24-2003 04:39 PM

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

All times are GMT -5. The time now is 01:31 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