Skip to content

Dasharo/preseeds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

preseeds

This repository contains OS preseeds for preparing Dasharo devices for testing.

Usage

Start a http server from the terminal:

$ python -m http.server 8080

Supported OSes

OS HTTP netboot.xyz local
Ubuntu Yes Yes Yes
Debian Yes Yes Yes

Windows

  • Install Windows first because the automatic installer cleans the entire disk
  • Download the newest Windows Disk Image (ISO) from official website
  • Use WoeUSB to make a bootable USB, then the USB can be modified under Linux. Example command:
    sudo woeusb --device Win11_23H2_EnglishInternational_x64v2.iso /dev/sd[drive letter]
  • Copy autounattend.xml to bootable USB disk
  • Insert the USB into the platform and boot from the USB
  • Windows will install automatically and configure
  • If there are any problems during installation, you can make sure all steps have been completed by manually running the files setup-ssh.ps1 and install-updates.ps1
    PowerShell.exe -ExecutionPolicy UnRestricted -File .\setup-ssh.ps1
    PowerShell.exe -ExecutionPolicy UnRestricted -File .\install-updates.ps1

If for some reason you want to upgrade to the latest version, Windows update does not allow it, you can do it by inserting the USB and running .\setup.exe under Windows. This solution leaves the bootloader. However, in most cases, the Windows + Ubuntu autoinstaller will be faster.

Ubuntu

ubuntu/create_image.sh script automatically downloads Ubuntu release 22.04.4, extracts it, injects preseeds and packages the new iso image. General preseed configuration can be found in the ubuntu/main.cfg file, if necessary, it can be edited. The script also takes arguments if the original Ubuntu iso image has already been downloaded or extracted.

Warning! This script by default wipes the first disks and setups ubuntu partitions! If you want custom partitioning run the program with -p argument.

Exemplary usages

Does everything and saves the image as ubuntu-auto-22.04.4.iso in the script execution directory:

./ubuntu/create_image.sh

Extracts downloaded image and saves modified image (it is important that the image is downloaded from here, otherwise it may work incorrectly):

./ubuntu/create_image.sh -i ~/Downloads/ubuntu-22.04.4-desktop-amd64.iso

Saves modified image as ubuntu.iso:

./ubuntu/create_image.sh -o ubuntu.iso

There is a help if needed:

./ubuntu/create_image.sh -h

Debian

Debian preseeds are located in the debian/ directory.

Via HTTP

Boot the Debian ISO and append the following to the kernel commandline before launching the installer:

auto url=http://[your ip]:8080/debian/preseed.cfg

Via netboot.xyz

Add the following snippet to your netboot.xyz Debian netboot entry:

set preseedurl http://[your ip]:8080/debian/preseed.cfg
preseed/url=${preseedurl}

Locally

Follow the steps in the Debian documentation to add the preseed file to a Debian installer ISO.

About

OS preseeds for Dasharo testing purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published