Bug#848726: shebang preseed / header magic
Control: tag -1 +patch
On Sun, Jan 15, 2017 at 11:09:02AM +0100, Pali Rohár wrote:
] ] Goal is having a "header" which make it possible
] ] to check that actual a preseed file is being downloaded.
] ] Step 1:
] ] Document all "stretch" preseed files begining with '#_preseed_V1'
] ] Step 2:
] ] In "stretch+1", a.k.a. "buster", implement code that checks '#_preseed_V1'
] ] and informs netbooting user when not found.
> Hi! Any progress on this particular problem?
Find attached a patch against the installation guide.
> I fully agree that pressed file should be identifiable by either some
> magic line or header.
Yes. The challenge now is to get beyond "we didn't need in the past" ...
Leven en laten leven
--- build/build.sh (revision 70653)
+++ build/build.sh (working copy)
@@ -59,7 +59,8 @@
if [ -f $PRESEED ] && [ -f preseed.pl ] ; then
for arch in $architectures; do
- ./preseed.pl -r $manual_release $PRESEED >$arch_destination/example-preseed.txt
+ echo '#_preseed_V1' >$arch_destination/example-preseed.txt
+ ./preseed.pl -r $manual_release $PRESEED >>$arch_destination/example-preseed.txt
--- en/appendix/preseed.xml (revision 70653)
+++ en/appendix/preseed.xml (working copy)
@@ -633,6 +633,18 @@
+The file should start with <literal>#_preseed_V1</literal>
+ The "should" is for the Stretch release,
+ so later releases use the comment
+ as a magic string to identify a preseed file
+ see also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848726
There are a few rules to keep in mind when writing a preconfiguration file.
@@ -667,6 +679,10 @@
Some questions take a code as value instead of the English text that is
shown during installation.
+ Start with <literal>#_preseed_V1</literal>
+ <!-- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848726 -->
@@ -682,7 +698,8 @@
database and the installer's cdebconf database to a single file:
-$ debconf-get-selections --installer > <replaceable>file</replaceable>
+$ echo "#_preseed_V1" > <replaceable>file</replaceable>
+$ debconf-get-selections --installer >> <replaceable>file</replaceable>
$ debconf-get-selections >> <replaceable>file</replaceable>