From: xf0r3m Date: Sat, 18 May 2024 07:59:46 +0000 (+0200) Subject: Przesłanie plików na repo Git. X-Git-Url: https://gitweb.morketsmerke.org/?a=commitdiff_plain;h=92f54789e7aae276cdc2eadd0152ea10ac9c56fd;p=mikrod.git Przesłanie plików na repo Git. --- 92f54789e7aae276cdc2eadd0152ea10ac9c56fd diff --git a/mikrod-chroot.sh b/mikrod-chroot.sh new file mode 100644 index 0000000..2656796 --- /dev/null +++ b/mikrod-chroot.sh @@ -0,0 +1,42 @@ +#!/bin/bash + +set -e + +#Software installation +apt-mark hold sysvinit-core +apt install --no-install-recommends -y whiptail +apt install --no-install-recommends -y tzdata locales keyboard-configuration console-setup sudo bash-completion linux-image-amd64 net-tools isc-dhcp-client openssh-client extlinux + +#User configuration +useradd -m -s /bin/bash $1; +usermod -aG sudo $1; +passwd $1; +usermod -L root + +#Hostname configuration +echo "mikrod" > /etc/hostname; +echo "127.0.1.1 mikrod" >> /etc/hosts; + +#/etc/fstab entries +rootUUID=$(blkid | grep 'mikrod' | awk '{printf $3}'); +swapUUID=$(blkid | grep 'swap' | awk '{printf $2}'); +cat >> /etc/fstab <> /boot/extlinux.conf <