proceed manually –or–
this is otherwise automated with the slackpost.bash
script
cd /data/guests/ wget https://pub.nethence.com/bin/slack/slackpost.bash.txt mv slackpost.bash.txt slackpost.bash chmod +x slackpost.bash
define/tune accordingly
vi /root/mirror.conf mirror=https://mirror.ihost.md/slackware/slackware64-15.0/ zone=Europe/Moscow # FILE-SYSTEM fs=btrfs #fs=reiser4 # VMM vpartition=/dev/xvda1 serial=hvc0 #vpartition=/dev/vda1 #serial=ttyS0
and proceed
cd /data/guests/$guest/ ../slackpost.bash $guest lala/
beware to start this one from rc.inet1 or install and enable rc.inet2
ls -lF lala/etc/rc.d/rc.inet2 # no exist unless you did full install # REC but forcibly installed by slackstrap/minimal ls -lF lala/etc/rc.d/rc.sshd # already enabled grep sshd lala/etc/rc.d/rc.inet1 grep sshd lala/etc/rc.d/rc.local
no kernel what-so-ever for XEN
ls -lF lala/var/log/packages/kernel*
update package cache
echo $dns1 echo $dns2 ls -lF lala/etc/resolv.conf # no exist cat > lala/etc/resolv.conf <<-EOF nameserver $dns1 nameserver $dns2 EOF mount -o bind /dev lala/dev mount -o bind /dev/pts lala/dev/pts mount -o bind /proc lala/proc mount -o bind /sys lala/sys chroot lala/ bash ping -c1 opendns.com cat /etc/slackpkg/mirrors slackpkg update history -c ^D rm -f lala/root/.bash
fix the xen guest serial console, see syslinux
deploy and enable TMEM
mkdir lala/lib/modules/ tar xzf /data/kernels/5.2.21.domureiser4.modules.tar.gz -C lala/lib/modules/ echo /sbin/modprobe tmem >> lala/etc/rc.d/rc.modules.local ls -lF lala/etc/rc.d/rc.modules.local # enabled already
finish-up — be it for a template or not (see below)
ls -ldF lala/installpkg-*/ # no exist #rm -rf lala/installpkg-*/ du -sh lala/ # 367M btrfs@ocfs2
# mklost+found ... umount -R lala/ rmdir lala/