Results 1 to 8 of 8

Thread: is possible in iso insert folder?

  1. #1
    Join Date
    Feb 2015
    Beans
    17

    is possible in iso insert folder?

    Hello everyone, is it possible to include a folder with a series of scripts and files inside an ISO file, so that upon the first boot, it runs the installation and customization after logging in? Thank you.

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: is possible in iso insert folder?

    Canonical has been screwing with this basically, every release.

    cloud-init is the most recent method supported. https://discourse.ubuntu.com/t/autom...allation/16612
    This is normally handled using an NFS, HTTP or tftp server that are discovered during installation time or with a network installer. I don't know the exact command. The config file has changed over time to be less clear so that lots of complex stuff can be handled.

    https://cloudinit.readthedocs.io/en/...ial/index.html
    https://cloudinit.readthedocs.io/en/.../examples.html
    https://www.pugetsystems.com/labs/hp...oud-init-2213/

    You don't have to re-master the ISO. Support for this is built-into existing ISOs.

    There's also an OEM model. https://help.ubuntu.com/community/Ub...aller_Overview and https://askubuntu.com/questions/3667...ne-oem-install
    Last edited by TheFu; January 2nd, 2024 at 06:46 PM.

  3. #3
    Join Date
    Feb 2015
    Beans
    17

    Re: is possible in iso insert folder?

    but i not want use cloud or network in general i want inject inside of iso and after instal at first login run my script , thanks for rply

  4. #4
    Join Date
    Aug 2017
    Location
    melbourne, au
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: is possible in iso insert folder?

    The ISOs themselves are a read only squashfs so they cannot be changed, and that is intentional.

    You can modify them though; expand the ISO, change it then re-master a new ISO.

    https://help.ubuntu.com/community/In...DCustomization

    You gave no clear Ubuntu details though, as Ubuntu has used multiple installers (di & ubiquity use one format, ubuntu-desktop-installer & subiquity do it a little differently) so follow the correct instructions for whichever Ubuntu product/release you're trying to use.
    Last edited by guiverc; January 2nd, 2024 at 10:14 PM.

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

    Re: is possible in iso insert folder?

    What guiverc described previously is how it is done 'now' and how it is evolving even more, as each installer comes out, with using cloud-init. What he linked to is the older installer ubuiquity, which is not used for Ubuntu any more. Noble, in April, is Subiquity.

    You can do autoinstall.yaml and with the late commands, copy in the script folder with your scripts... or just run the scripts straight from the late commands. You can create a cloud-init ISO to plug in alongside your installer LiveUSB. That works without having to having to point to a network link for it. Or you can add a directory for your cloud-init inside the ISO for the installer LiveUSB

    I am just finishing up on getting a patch pushed through to fix getting the late commands back working for the autoinstaller:
    https://bugs.launchpad.net/subiquity/+bug/2040654
    https://ubuntuforums.org/showthread.php?t=2491776

    After 22.04, Ubuntu uses a different installer. The system-image is inside of the Snap Package 'ubuntu-desktop-installer'. The system image is inside that Snap as an archive, which then gets extracted to the Live Env's /tmp directory, then rsync'ed to the intsall's filesystem framework... So it's now more buried inside the ISO image > inside that Snap Package > inside another archive file. So to do that, you would have to extract the ISO, then extract the Snap, then extract that system archive file... to add that, then change the installer script to run your scripts from inside the chroot... Then prevent the installer from doing a git refresh so it doesn't get replaced.

    Loads of room for that to fail outright from many angles. Just because it is remotely possible does not make that a good idea at all.
    My recommends, learn curtin, and cloud-init. That is the direction that it now works.

    "Concurrent coexistence of Windows, Linux and UNIX..." || Ubuntu user # 33563, Linux user # 533637
    Sticky: Graphics Resolution | UbuntuForums 'system-info' Script | Posting Guidelines | Code Tags

  6. #6
    Join Date
    Feb 2015
    Beans
    17

    Re: is possible in iso insert folder?

    Wow, more complicated than this...noo? In Windows, you put everything inside a folder, remaster it, and you're ready to go. Obviously, there isn't a tool that you give the ISO to and it does everything for you, right?"

  7. #7
    Join Date
    May 2014
    Location
    /home
    Beans
    10,964
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: is possible in iso insert folder?

    You could use cubic to make a custom ISO

  8. #8
    Join Date
    Jul 2006
    Location
    Uppsala, Sweden
    Beans
    Hidden!
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: is possible in iso insert folder?

    I used this script as base for making my autoinstall images, but expanded it to support two user-data files. I am not so good programmer so I used AI to fix it for me.
    https://raw.githubusercontent.com/co...l-generator.sh
    - Jaxilian -

    ||embrace the inevitable||

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
  •