2023-04-15 00:28:26 +02:00
|
|
|
# To Do...
|
|
|
|
|
2023-04-14 22:38:13 +00:00
|
|
|
# Modular Approach
|
|
|
|
|
|
|
|
## Folder Structure
|
|
|
|
|
|
|
|
* main.sh
|
|
|
|
* ./services
|
|
|
|
* tftpd-hpa
|
|
|
|
* plugin.sh
|
|
|
|
* config.sh
|
|
|
|
* ./templates
|
|
|
|
* ./build
|
|
|
|
* nfs
|
|
|
|
* samba
|
|
|
|
* iscsi / tgt
|
|
|
|
* lighthttpd
|
|
|
|
* ./menues
|
|
|
|
* default
|
|
|
|
* plugin.sh
|
|
|
|
* config.sh
|
|
|
|
* ./templates
|
|
|
|
* ./build
|
|
|
|
* branded-menue
|
|
|
|
* ./plugins
|
|
|
|
* Knoppix
|
|
|
|
* plugin.sh
|
|
|
|
* config.sh
|
|
|
|
* ./templates
|
|
|
|
* ./build
|
|
|
|
* ./resources
|
|
|
|
* ./downloads
|
|
|
|
* ./temp
|
|
|
|
* Rescuezilla
|
|
|
|
* FreeDOS
|
|
|
|
* Clonezilla
|
|
|
|
|
|
|
|
## Structure
|
|
|
|
|
|
|
|
### main.sh
|
|
|
|
* drives all actions:
|
|
|
|
* init - bootstrap the bare minimum: debian packages, config files, etc.
|
|
|
|
* build - build all enabled plugins: trigger downloads, file processing
|
|
|
|
* build-all - build even disabled plugins
|
|
|
|
* start / stop / restart - handle services
|
|
|
|
|
|
|
|
### ./menues
|
|
|
|
*
|
|
|
|
|
|
|
|
|
2023-04-15 00:28:26 +02:00
|
|
|
* Modular pxelinux menu:
|
|
|
|
* split menu in parts: Knoppix, Rescuezilla, Acronis, etc.
|
|
|
|
* use settings.sh as configuration file, e.g. MENU_KNOPPIX=YES or MENU_NON-FREE=NO
|
|
|
|
* create template files in ./resources: menu-knoppix.cfg, menu-rescuezilla.cfg
|
|
|
|
* use INCLUDE command if possible https://wiki.syslinux.org/wiki/index.php?title=Menu#INCLUDE
|
|
|
|
* read settings.sh and parse templates to fill in variables
|
|
|
|
|
|
|
|
|
|
|
|
* iSCSI Target:
|
|
|
|
* apt install tgt
|
|
|
|
* zless /usr/share/doc/tgt/README.iscsi.gz
|
|
|
|
* tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2020-11.tld.ostrach:target1
|
|
|
|
* tgtadm --lld iscsi --op show --mode target
|
|
|
|
* tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/hdc1
|
|
|
|
* tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
|
|
|
|
|
|
|
|
* https://www.server-world.info/en/note?os=Debian_11&p=iscsi&f=2
|
|
|
|
* http://etherboot.org/wiki/sanboot
|
|
|
|
* https://ipxe.org/howto/winpe
|
|
|
|
|
|
|
|
1. install tgt
|
|
|
|
2. parse settings.sh and create tgt config files to:
|
|
|
|
3. a Windows 10 DVD target (.iso under /srv/tftp/non-free/windows10.iso)
|
|
|
|
|
|
|
|
Remeber: Check if a iSCSI Tape-Target could be used to trick a Tape Backup Software to use HardDisks as Tapes
|