debconf not recognizing template pattern from custom udeb
March 30th, 2012 - 01:20 pm ET by Ryan Braun [ADS] | Report spam
I'm trying to setup and run the scripted partitioning udeb I found on the list
a while back (http://hezmatt.org/~mpalmer/scripted-partitioning/).
I've got the vast majority of it all working, just for some reason whatever
pattern I preseed, debconf always reports the pattern as NULL. Which throws
a pretty big wrench in the whole process. If I hardcode the script into the
udeb, it will partition the system as it should, I just can't get the
debconf hooks to work properly.
I've never worked with debconf and it's templates, so it is more then likely
an implementation issue.
Here is the templates control file from the udeb.
Template: debian-installer/scripted-partitioning/title
Type: text
Description: Partition automatically via a shell script
Template: scripted-partitioning/script
Type: text
Description: What script do you want to run to partition your disk?
The filename must be relative to /lib/scripted-partitioning, and must
already exist and be executable.
From the docs, I should be able to preseed a pattern for whichever script I
would like to run to handle the partitioning (no I'm no longer interested in
using partman for preseeding, this is WAY easier once I figure this hooks
issue out)
In my preseed file, I have the following 2 lines to enable the udeb and set
the pattern (the udeb is included in a custom repo on a remastered iso)
d-i preseed/early_command string anna-install cdebconf-udeb parted-udeb
xfsprogs-udeb hw-detect md-modules mdadm-udeb lvm2-udeb dmsetup-udeb
ntfstools-udeb xfs-modules ext2-modules ext3-modules; udpkg --unpack
/cdrom/ads/repo/sp.udeb
scripted-partitioning/script text z400
I can see the early_command works fine, the udeb does get unpacked. The main
issue is that debconf will never recognize the pattern scripted-
partitioning/script and always reports both patterns from the template file as
NULL. Here is the result from debconf-dumpdb configdb|grep scripted
debian-installer/scripted-partitioning/title text (null)
scripted-partitioning/script text (null)
Is there something off in the templates perhaps somehow?
Ryan Braun
Aviation and Defence Services Division
Chief Information Officer Branch, Environment Canada
CIV: 204-833-2500x2625 CSN: 257-2625 FAX: 204-833-2558
E-Mail: Ryan.Braun@ec.gc.ca
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/str...">
<html><head><meta name="qrichtext" content="1" /><style type="text/css">
p, li { white-space: pre-wrap; }
</style></head><body style=" font-family:'Monospace'; font-size:10pt; font-weight:400; font-style:normal;">
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I'm trying to setup and run the scripted partitioning udeb I found on the list a while back (http://hezmatt.org/~mpalmer/scripted-partitioning/).</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I've got the vast majority of it all working, just for some reason whatever pattern I preseed, debconf always reports the pattern as NULL. Which throws a pretty big wrench in the whole process. If I hardcode the script into the udeb, it will partition the system as it should, I just can't get the debconf hooks to work properly.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I've never worked with debconf and it's templates, so it is more then likely an implementation issue.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Here is the templates control file from the udeb.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Template: debian-installer/scripted-partitioning/title</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Type: text</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Description: Partition automatically via a shell script</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Template: scripted-partitioning/script</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Type: text</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Description: What script do you want to run to partition your disk?</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> The filename must be relative to /lib/scripted-partitioning, and must</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"> already exist and be executable.</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">From the docs, I should be able to preseed a pattern for whichever script I would like to run to handle the partitioning (no I'm no longer interested in using partman for preseeding, this is WAY easier once I figure this hooks issue out)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">In my preseed file, I have the following 2 lines to enable the udeb and set the pattern (the udeb is included in a custom repo on a remastered iso)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">d-i preseed/early_command string anna-install cdebconf-udeb parted-udeb xfsprogs-udeb hw-detect md-modules mdadm-udeb lvm2-udeb dmsetup-udeb ntfstools-udeb xfs-modules ext2-modules ext3-modules; udpkg --unpack /cdrom/ads/repo/sp.udeb</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">scripted-partitioning/script text z400</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">I can see the early_command works fine, the udeb does get unpacked. The main issue is that debconf will never recognize the pattern scripted-partitioning/script and always reports both patterns from the template file as NULL. Here is the result from debconf-dumpdb configdb|grep scripted</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">debian-installer/scripted-partitioning/title text (null)</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">scripted-partitioning/script text (null)</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Is there something off in the templates perhaps somehow?</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">-- </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Ryan Braun</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Aviation and Defence Services Division </p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">Chief Information Officer Branch, Environment Canada</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">CIV: 204-833-2500x2625 CSN: 257-2625 FAX: 204-833-2558</p>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;">E-Mail: Ryan.Braun@ec.gc.ca</p>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"></p></body></html>
To UNSUBSCRIBE, email to debian-boot-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: http://lists.debian.org/20120330170...ryan.braun@ec.gc.ca
Similar topics
- Bug#691946: Debconf templates are not translated
- Bug#685786: lynx-cur: debconf question for homepage does not accept https
Make your own search :
Tags
Create a new topic
Follow the discussion
1 reply
Make a reply
May 18th, 2013 - 7:31 PM ET
Join now


Replies