/debian-autoinstall

Scripts for creating custom Debian autoinstall image

Primary LanguageShell

debian-autoinstall

Scripts for creating custom Debian autoinstall image or debian usb bootable flash:

file description
run.sh main script which runs all scripts and makes new custom image
prereq you should install packages which are listed in this file before using scripts
settings.conf contains parameters to build your own Debian custom installation image
pressed.cfg contains default autoinstall pressed file, you may specify additional settings in it if you need ATTENTION: account settings will be added using customize-image.sh
_SCRIPTS/ folder which contain scripts to configure your OS after installation; you could add all what you need to start by _SCRIPTS/postinstall.sh; SCRIPTS/postinstall.sh - run all additional scripts in _SCRIPTS folder
load-image.sh download latest image and unpack it in folder which you specify in settings.conf
customize-image.sh contains commands for Debian image customization
create-custom.sh create new images $IMAGE-mbr.iso, $IMAGE-efi.iso, $IMAGE.iso
mk-bootable-usb.sh you could use this script to create bootable USB

How to start use it?

  1. Modify settings.conf
  2. You can modify file pressed.cfg modify 345 tasksel tasksel/first multiselect standard line change tasksel/first multiselect standard - for console server or tasksel tasksel/first multiselect standard, desktop, lxde-desktop - for workstation
  3. Run the following:
apt-get -y install bsdtar xorriso

git clone git@github.com:nen-dev/debian-autoinstall.git

bash run.sh 

# /dev/sdb - usb disk

bash mk-bootable-usb.sh /dev/sdb