This commit is contained in:
simono41 2018-04-08 19:27:24 +02:00
parent 60ca38607f
commit 8f62e787e7
2 changed files with 35 additions and 13 deletions

View file

@ -21,6 +21,7 @@ repo1="shell-scripte"
version="$1"
username="$2"
userpass="$3"
archchroot="$4"
[[ -z "${version}" ]] && version="voll"
[[ -z "${username}" ]] && username="user1"
@ -300,15 +301,6 @@ fi
gitclone
if [ "$vollinstallation" != "n" ]
then
check
if [ "$vollinstallation" != "debug" ]; then
standartinstallation
fi
checkend
fi
# sudoers/wheel
echo "Lege $SUDOERS neu an!!!"
@ -355,6 +347,16 @@ if [ -f /var/lib/pacman/db.lck ];then
rm /var/lib/pacman/db.lck
fi
# vollinstallation
if [ "$vollinstallation" != "n" ]
then
check
if [ "$vollinstallation" != "debug" ]; then
standartinstallation
fi
checkend
fi
if [ "${version}" != "libre" ]; then
#yaourtmanagerinstall
#pacaurmanagerinstall
@ -365,6 +367,7 @@ if [ "${version}" != "libre" ]; then
aurinstall plymouth-theme-dark-arch
plymouth-set-default-theme -R dark-arch
aurinstall snapd
if [ "${archchroot}" == "archchroot" ]; then
systemctl enable --now snapd.socket
if ! [ -d "/snap" ];then
ln -s /var/lib/snapd/snap /snap
@ -383,6 +386,9 @@ if [ "${version}" != "libre" ]; then
if ! [ -f "/usr/share/applications/skype_skypeforlinux.desktop" ];then
ln -s /var/lib/snapd/desktop/applications/skype_skypeforlinux.desktop /usr/share/applications/skype_skypeforlinux.desktop
fi
else
systemctl enable snapd.socket
fi
fi

View file

@ -34,10 +34,21 @@ function minimalinstallation() {
cp pacman* /etc/
cp mirrorlist* /etc/pacman.d/
if [ "${parameter6}" != "archchroot" ]; then
echo "Tipp: Die Option -i eine automatische Bestätigung der Paketauswahl. Da Sie den Linux-Kernel nicht im Container installieren müssen, können Sie ihn aus der Paketlistenauswahl entfernen, um Platz zu sparen. Siehe Pacman # Verwendung ."
fi
if [ "${version}" == "libre" ]; then
./pacstrap -C /etc/pacman.conf_libre -c -d -G -M ${work_dir}/${arch}/airootfs base git --ignore linux
if [ "${parameter6}" != "archchroot" ]; then
./pacstrap -C /etc/pacman.conf_libre -c -i -d -G -M ${work_dir}/${arch}/airootfs base git --ignore linux
else
./pacstrap -C /etc/pacman.conf -c -d -G -M ${work_dir}/${arch}/airootfs base git --ignore linux
./pacstrap -C /etc/pacman.conf_libre -c -d -G -M ${work_dir}/${arch}/airootfs base git
fi
else
if [ "${parameter6}" != "archchroot" ]; then
./pacstrap -C /etc/pacman.conf -c -i -d -G -M ${work_dir}/${arch}/airootfs base git --ignore linux
else
./pacstrap -C /etc/pacman.conf -c -d -G -M ${work_dir}/${arch}/airootfs base git
fi
fi
}
@ -393,10 +404,15 @@ if [ "${parameter2}" != "skip" ]; then
filesystem
echo "Jetzt können sie ihr Betriebssystem nach ihren Belieben anpassen :D"
echo "Tipp: benutzen sie den User root :D"
echo "Bitte führen sie arch-graphical-install-auto und die Version aus."
echo "Benutze Poweroff um das System wieder herunterzufahren und das Komprimieren zu beginnen :)"
cp arch-graphical-install-auto ${work_dir}/${arch}/airootfs/usr/bin/arch-graphical-install-auto
if [ "${parameter6}" != "archchroot" ]; then
systemd-nspawn -b -D ${work_dir}/${arch}/airootfs
else
./arch-chroot ${work_dir}/${arch}/airootfs /usr/bin/arch-graphical-install-auto ${version} user1 user1 archchroot
fi
fi
if [ "${parameter3}" != "skip" ]; then