Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 49

Thread: Install extra packages with preseed

  1. #11
    Join Date
    Mar 2010
    Location
    USA
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Install extra packages with preseed

    If you look at the installation logs, is it even reading the preseed file? for instance if you did something else in a overtly purposeful off manner, does it follow the script? That just seems so odd... Because from I hear you saying, it should be working. I think may it might be "me" that is missing or not seeing what is going on... because what you are describing should be working.

    Yes, I hear you and I and have to re-look at these details, personally, for my own opensource project, The Ama-gi LiveCD... Where I am facing having come up with my own LiveCD Installation scripts, or using something else, liek SystemBack... where I can just copy/clone, what I have in DEV, and run post-install scripts for the leftover details. So ys, I sort of have a vested interest in this, in a round about way. I can't do that like I have in the past by doing PXE boots, or booting from a USB drive for installations of clients. I have to come up with my own LiveCD ISO. It's a lot easier when you "have" control over what is being installed and you know what it is being installed on. LOL

    Is the initial install except for that working? Such as the partitioning and encryption?If it does, then maybe the best would be a post-install script for setting the differing and distinct details, such as a suite of applications being installed, and prompts for filling in the hostname, username and passwords... Or such. One thing that always bugged me was installing a default user and passwords during a mass install, and having them as leftovers on a system, after the deployment... Having to clean those up, later.

    Easier? LOL... It just recently got a lot "different. The whole installer system just got changed into sometime else now, and the new one has issues to work through before 22.04.. i'm thinking what I might end up having to do on my own LiveCD project, is having to write my own installation scripts, at that level, but not much is well documented on this new live installer system for that yet...

    Concurrent coexistance of Windows, Linux and UNIX...
    Ubuntu user # 33563, Linux user # 533637
    Sticky: [all variants] Graphics Resolution- Upgrade /Blank Screen after reboot
    UbuntuForums system-info Script

  2. #12
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    Quote Originally Posted by MAFoElffen View Post
    If you look at the installation logs, is it even reading the preseed file? for instance if you did something else in a overtly purposeful off manner, does it follow the script? That just seems so odd... Because from I hear you saying, it should be working. I think may it might be "me" that is missing or not seeing what is going on... because what you are describing should be working.
    I'd say that finding these lines in /var/log/installer/syslog would indicate that it's at least reading the preseed config:
    Code:
    Oct 12 18:26:55 ubuntu kernel: [    0.000000] Command line: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/custom.seed auto=true priority=critical boot=casper automatic-ubiquity quiet splash noprompt noshell ---
    Oct 12 18:26:55 ubuntu kernel: [    0.067562] Kernel command line: BOOT_IMAGE=/casper/vmlinuz file=/cdrom/preseed/custom.seed auto=true priority=critical boot=casper automatic-ubiquity quiet splash noprompt noshell ---
    Oct 12 18:26:55 ubuntu kernel: [    0.994447]     file=/cdrom/preseed/custom.seed
    Oct 12 18:28:04 ubuntu localechooser: info: debian-installer/locale preseeded to 'en_US' (seen: true)
    Oct 12 18:28:38 ubuntu /install.py: keeping packages due to preseeding:
    However I'd expected to find more lines than only those about preseeding when doing:
    Code:
    fgrep preseed /var/log/installer/*
    But those are the only lines containing 'preseed'...

  3. #13
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    It does setup my sources.list using the Swedish mirror (se.archive.ubuntu.com) that I configure in the preseed, and it uses the 'r00tme' password for root that's also in the preseed.
    So - it does do some parts of it.

  4. #14
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    I'd say that what I have now with the preseed, where the installer asks me for hostname, luks password and presents me with a "Create User" dialog is as close to perfect for my needs as I could hope to get. I guess I have to finish the setup with puppet, but I'd really like the preseed to install some extra packages, including puppet-agent.

  5. #15
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    Quote Originally Posted by jbygden2 View Post
    It does setup my sources.list using the Swedish mirror (se.archive.ubuntu.com) that I configure in the preseed, and it uses the 'r00tme' password for root that's also in the preseed.
    So - it does do some parts of it.
    Hmm, I was wrong.

    It doesn't setup the Swedish mirror and it doesn't set the root password.

    It does however follow the preseed when it comes to volume setup:
    Code:
    d-i partman-auto/method string crypto
    will ask for, and use, a luks password, whereas
    Code:
    d-i partman-auto/method string lvm
    does not.

    I'm really confused by this now...

  6. #16
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    It's also "respecting" the setting for hostname:
    Code:
    d-i netcfg/get_hostname string unassigned-hostname

  7. #17
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    It's definitely reading the preseed-file.
    I tested to put my preseed.cfg on a web server and pointed the boot to it, and it's reflected in /var/log/installer/syslog after setup that it's read that file.

    I'm getting more and more confused here...

  8. #18
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    So, is autoinstall the way to go instead? Or is that 'server only', and will only confuse me even more?
    I've now read on mulitple places that as of 20.04 the 'old' debian-installer is no longer in use (or even supported) for installing...

  9. #19
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    Found the Kickseed stuff on Launchpad, which apparently was supposed to be used as a preseed replacement for kickstart, but it's not been touched since February 2014 - so I'm guessing it's not really relevant any more...

  10. #20
    Join Date
    Sep 2021
    Location
    Stockholm, Sweden
    Beans
    41
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Install extra packages with preseed

    Is there really no-one that has a working config for mass deployment (not really that 'mass' either) of Ubuntu hosts - other than imaging, which I'd prefer not to use?

Page 2 of 5 FirstFirst 1234 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •