Slackstart - Automated Slackware Installation

guest-slackware-console | slackstart

Prepare the RAMDISKPrepare the RAMDISK

unpack the official installer

mkdir -p /tftpboot/slackstart/lala/
cd /tftpboot/slackstart/lala/
#gzip -dc /tftpboot/slackware142/isolinux/initrd.img | cpio -id -H newc --no-absolute-filenames
xzcat /tftpboot/slackware150/isolinux/initrd.img | cpio -id -H newc --no-absolute-filenames
ls -alkF
wget http://pub.nethence.com/bin/slackstart/slackdisk.bash
wget http://pub.nethence.com/bin/slackstart/slackstrap.bash
wget http://pub.nethence.com/bin/slackstart/slackprep.bash
wget http://pub.nethence.com/bin/slackstart/slacknet.bash
chmod +x slack*bash
wget http://pub.nethence.com/bin/slack/slackstart.conf

define a local mirror and SSH public keys (variables are multi-line capable)

vi slackstart.conf

mirror=...
pubkeys="..."

warn about that script that will erase all the data from the drive

vi etc/rc.d/rc.S

#echo -n "slackware login: "
#read BOGUS_LOGIN
#cat /etc/motd

echo | network
dhcpcd
sleep 3
ping -W1 -c1 opendns.com >/dev/null && echo network SUCCESS || echo network FAILURE
#./slackdisk.bash sda
./slackdisk.bash vda
./slackstrap.bash lala
./slackstrap.bash lala kernel
./slackprep.bash lala
./slacknet.bash lala

Pack it back upPack it back up

# todo - with xz also
find . -print | cpio -o -H newc | gzip -9 > ../slackstart.img

and eventually add a PXE entry for it

vi /tftpboot/pxelinux.cfg/default 

label slackware150 slackstart
    kernel slackware150/kernels/huge.s/bzImage
    append initrd=slackstart/slackstart.img mitigations=off
    #vga=791

Ready to goReady to go

once the system is installed you should be able to boot the box with either EFI or legacy and see your minimal system booting up (642M with A AP /ADD and custom N).

can login as root w/o a password and get an IP through DHCP or use netconfig (SSH public keys are already in place if defined above), though we’ve installed dhclient instead of dhcpcd (which netconfig may need).

clean-upclean-up

cd /tftpboot/slackstart/

this one eventually remains

ls -lkF slackstart.img

this one is finished

rm -rf lala/

ResourcesResources

Slackware automated or unattended installation https://www.linuxquestions.org/questions/slackware-14/slackware-automated-or-unattended-installation-4175547736/

Slackware install optimization https://flaterco.com/kb/slackware.html

Slackware initrd mini HOWTO https://ftp.riken.jp/Linux/slackware/slackware-current/README.initrd

the competition

Linux Slack-Kickstart Project http://www.slack-kickstart.org/


HOME | GUIDES | LECTURES | LAB | SMTP HEALTH | HTML5 | CONTACT
Licensed under MIT