How to comment out preseed late commands?

Help with issues regarding installation of Debian

How to comment out preseed late commands?

Postby kerryhall » 2020-04-26 22:21

From my understanding, late command is only supported once in preseed.

Thus, if you want to have multiple commands, you must use ";". It's a good idea to split this up into multiple lines with "\" also, for easy readability, like so:

https://serverfault.com/a/390125

My preseed.cfg looks pretty similar to something like this. I have about 10 lines that I run.

Now here's my issue. For debugging purposes, I need to comment out a few lines.

How would I do that here?

If it's not possible, seems like a very compelling use case for multiple instances of "late command", as I could simple comment those out, line by line.
kerryhall
 
Posts: 179
Joined: 2008-08-19 11:06

Re: How to comment out preseed late commands?

Postby pylkko » 2020-05-05 05:08

I have no idea, and have never used it. But if you can use it to issue a command to the shell, then you can use it to launch a shell script, right. In that script you could take out individual lines for debugging.
User avatar
pylkko
 
Posts: 1739
Joined: 2014-11-06 19:02

Re: How to comment out preseed late commands?

Postby cuckooflew » 2020-05-06 02:07

A quick search, and also logic, Did you try using the standard
Code: Select all
 #
to comment out the lines ?
Usually if one puts a
Code: Select all
 #
at the beginning of a line, it will comment out that command, or string.
Some examples:
https://www.debian.org/releases/sarge/example-preseed.txt
==================
https://help.ubuntu.com/lts/installation-guide/example-preseed.txt

I read on one :
# Uncomment this to add multiarch configuration for i386
#d-i apt-setup/multiarch string i386

So to me , that is pretty clear, logically, if I do want to use/add this , or any other line,
simply uncomment the line ,EG:
Code: Select all
# Uncomment this to add multiarch configuration for i386 (this is a comment, do not uncomment # it, but do uncomment the line below, as shown)
d-i apt-setup/multiarch string i386

Hope this helps
Please Read.. What we expect you have already Done.
Does any one know about this ?
Users browsing this forum: Google Knows, and
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 403
Joined: 2018-05-10 19:34
Location: Some where out west

Re: How to comment out preseed late commands?

Postby Head_on_a_Stick » 2020-05-06 11:32

cuckooflew wrote:Did you try using the standard
Code: Select all
 #
to comment out the lines ?

Read the OP again, only a single late_command line is permitted with semicolons used to separate multiple commands — a comment would only apply to the entire line and could not be used for the individual commands.

I would suggest that the OP simply makes a backup of the preseed file then deletes the unwanted commands while debugging and restores the backup afterwards.
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12159
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: How to comment out preseed late commands?

Postby cuckooflew » 2020-05-06 13:24

Oh, ahh, I see now,...hmm , guess that won't help then.
The backup or a copy is a good idea.
Please Read.. What we expect you have already Done.
Does any one know about this ?
Users browsing this forum: Google Knows, and
My grand father knows all about everything:
…one flew east, one flew west,
One flew over the cuckoo’s nest.
cuckooflew
 
Posts: 403
Joined: 2018-05-10 19:34
Location: Some where out west


Return to Installation

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable