diff --git a/README.md b/README.md index 1ba045a..5b6a627 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ Tools provided here can be used on any plaform for any install modes (diskless, Just add [**headless.apkovl.tar.gz**](https://github.com/macmpi/alpine-linux-headless-bootstrap/raw/main/headless.apkovl.tar.gz) overlay file at the root of Alpine Linux boot media (or onto any custom side-media) and boot the system. -With default network interface definitions (and SSID/pass file if using wifi), one may then access the system under `ssh` with:\ -`ssh root@` (system IP address may be determined with any IP scanning tools such as `nmap`). +With default network interface definitions (and SSID/pass file if using wifi), one may then access the system under `ssh` with: `ssh root@`\ +(system IP address may be determined with any IP scanning tools such as `nmap`). As with Alpine Linux initial bring-up, `root` account has no password initially (change that after setup!).\ From there, system install can be fine-tuned as usual with `setup-alpine` for instance (check [wiki](https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-alpine) for details). diff --git a/headless.apkovl.tar.gz b/headless.apkovl.tar.gz index bde0716..5faa7c9 100644 Binary files a/headless.apkovl.tar.gz and b/headless.apkovl.tar.gz differ diff --git a/overlay/etc/local.d/headless.start b/overlay/etc/local.d/headless.start index 80ec46e..49b3fe8 100755 --- a/overlay/etc/local.d/headless.start +++ b/overlay/etc/local.d/headless.start @@ -1,6 +1,6 @@ #!/bin/sh -VERSION="0.5" +VERSION="0.6" # Redirect stdout and errors to console as rc.local does not log anything exec 1>/dev/console 2>&1 @@ -101,11 +101,17 @@ cat <<-EOF >> /etc/conf.d/sshd rc-service sshd start ## Prep for final post-cleanup +## clears any installed packages and settings cat <<-EOF > /tmp/.trash/post-cleanup #!/bin/sh logger -st ${0##*/} "Cleaning-up..." mv /etc/ssh/sshd_config.orig /etc/ssh/sshd_config mv /etc/conf.d/sshd.orig /etc/conf.d/sshd + apk del openssh + apk del wpa_supplicant + rm -rf /etc/wpa_supplicant + rm /etc/network/interfaces + rm /etc/hostname rm /etc/modules-load.d/g_ether.conf rm /etc/modprobe.d/g_ether.conf rc-update del local default