#!/bin/bash set -e location=${1:-$(dirname $(realpath $0))/chrooted-slackware} echo "$location" repo=${2:-/home/installs/mirrors/slackware64-current/slackware64} [ -e "$location" ] && rm -r "$location" mkdir -p "$location" sudo installpkg --terse --root "$location" "$repo"/*/*.t?z cat < "$location"/etc/fstab # tmpfs /dev/shm tmpfs defaults 0 0 devpts /dev/pts devpts noexec,nosuid,gid=tty,mode=0620 0 0 sysfs /sys sysfs defaults 0 0 proc /proc proc defaults 0 0 EOF # slackware repo mkdir -p "$location"/home/installs/mirrors/ cp -a "$repo"/../../slackware64-current/ "$location"/home/installs/mirrors/ cat < "$location"/etc/slackpkg/mirrors file://home/installs/mirrors/slackware64-current/ EOF # sbopkg sudo installpkg --terse --root "$location" /home/installs/PKGs/x86_64/sbopkg-*.tgz rsync -Ha --delete {,"$location"}/var/lib/sbopkg/ cat < "$location"/root/.sbopkg.conf REPO_NAME=SBo-git REPO_BRANCH=current EOF