Sponsored Content
Operating Systems Linux Debian Debian installer or how to preseed Post 303035703 by nodorgrom on Friday 31st of May 2019 08:39:57 AM
Old 05-31-2019
Debian installer or how to preseed

Good afternoon!


Could you please clarify me how to use correct Debian's preseed file?


I have a kernel version 4.15.0-20-generic (Ubuntu 18.04) and default initrd (both downloaded from official repo)
Also I have a little kickstart file and main preseed cfg file
Installation start by iPXE
I no have problems this installation, all works good and installation during fine but...


I noticed one an interesting and working rule:
Code:
d-i partman/early_command \
        string debconf-set partman-auto/disk "$(list-devices disk | tr -s '\n' ' ')"


it works fine, but following this logic I tried to make similar next:
Code:
d-i preseed/early_command \
        string wget -q -O /tmp/include.template myurl \
        touch /tmp/expert_recipe; \
        cat /tmp/include.template | sed -n '2,17p' > /tmp/expert_recipe



after these steps /tmp/include.template will have next path:
Code:
      justraid ::                                         \
              1000 5000 4000 raid                          \
                      $primary{ } method{ raid }           \
              .                                            \
              1000 4000 4000 raid                          \
                      method{ raid }                       \
              .                                            \
              1000 5000 4000 raid                          \
                      method{ raid }                       \
              .                                            \
              1000 5000 4000 raid                          \
                      method{ raid }                       \
              .                                            \
              1000 5000 10000000000 raid                   \
                      method{ raid }                       \
              .


following this logic I tried next step:
Code:
d-i partman-auto/expert_recipe_file string /tmp/include.template


OR btw next try doesn't work too:
Code:
d-i partman/early_command \
        string debconf-set partman-auto/expert_recipe "$(cat /tmp/include.template | sed -n '2,17p')"

I would to make flexible installation via preseed file, for example single installation, single installation with custom partitioning, raid installation mirror, stripe, 5, 6, 10...
Now I'm needed to make many preseed files and wget those, but I want to have just one main preseed file with many templates
 

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Ubuntu Preseed not found

Hello there! I am not certain that this is the proper place to post this, but I will try anyway. I am trying to install Ubuntu using a preseed on a USB thumb drive, and I am having problems. Hopefully someone here is able to help me. I have a file named 'preseed.cfg' in the root directory... (4 Replies)
Discussion started by: Curtor
4 Replies

2. UNIX for Advanced & Expert Users

Running Script after Preseed Install

Hello there, If you don't want to here the long version, but still want to answer my question, please skip down to THE BOTTOM! You can probably tell what I want to do already from the title, so I'll sum up what I have already done real quick: First off, for those that don't know, a preseed... (1 Reply)
Discussion started by: Curtor
1 Replies

3. UNIX for Advanced & Expert Users

rpm,pkg and debian installer

Hi, Can someone explain what's the difference between rpm, pkg and debian installer and what is the advantage of one above the other? Thanks (2 Replies)
Discussion started by: naan
2 Replies

4. Ubuntu

Problem creating Desktop shortcuts through Debian dpkg installer scripts

Hi, I am creating a debian package (*.deb) for my application using the command I am using debian pre/post installer scripts to do certain tasks before/after installation/uninstallation. One such task is to create a shortcut on the user's desktop to launch my application. I am trying to do this... (0 Replies)
Discussion started by: royalibrahim
0 Replies
All times are GMT -4. The time now is 07:29 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy