fix
This commit is contained in:
parent
60ca38607f
commit
8f62e787e7
2 changed files with 35 additions and 13 deletions
|
@ -21,6 +21,7 @@ repo1="shell-scripte"
|
||||||
version="$1"
|
version="$1"
|
||||||
username="$2"
|
username="$2"
|
||||||
userpass="$3"
|
userpass="$3"
|
||||||
|
archchroot="$4"
|
||||||
|
|
||||||
[[ -z "${version}" ]] && version="voll"
|
[[ -z "${version}" ]] && version="voll"
|
||||||
[[ -z "${username}" ]] && username="user1"
|
[[ -z "${username}" ]] && username="user1"
|
||||||
|
@ -300,15 +301,6 @@ fi
|
||||||
|
|
||||||
gitclone
|
gitclone
|
||||||
|
|
||||||
if [ "$vollinstallation" != "n" ]
|
|
||||||
then
|
|
||||||
check
|
|
||||||
if [ "$vollinstallation" != "debug" ]; then
|
|
||||||
standartinstallation
|
|
||||||
fi
|
|
||||||
checkend
|
|
||||||
fi
|
|
||||||
|
|
||||||
# sudoers/wheel
|
# sudoers/wheel
|
||||||
|
|
||||||
echo "Lege $SUDOERS neu an!!!"
|
echo "Lege $SUDOERS neu an!!!"
|
||||||
|
@ -355,6 +347,16 @@ if [ -f /var/lib/pacman/db.lck ];then
|
||||||
rm /var/lib/pacman/db.lck
|
rm /var/lib/pacman/db.lck
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# vollinstallation
|
||||||
|
if [ "$vollinstallation" != "n" ]
|
||||||
|
then
|
||||||
|
check
|
||||||
|
if [ "$vollinstallation" != "debug" ]; then
|
||||||
|
standartinstallation
|
||||||
|
fi
|
||||||
|
checkend
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "${version}" != "libre" ]; then
|
if [ "${version}" != "libre" ]; then
|
||||||
#yaourtmanagerinstall
|
#yaourtmanagerinstall
|
||||||
#pacaurmanagerinstall
|
#pacaurmanagerinstall
|
||||||
|
@ -365,6 +367,7 @@ if [ "${version}" != "libre" ]; then
|
||||||
aurinstall plymouth-theme-dark-arch
|
aurinstall plymouth-theme-dark-arch
|
||||||
plymouth-set-default-theme -R dark-arch
|
plymouth-set-default-theme -R dark-arch
|
||||||
aurinstall snapd
|
aurinstall snapd
|
||||||
|
if [ "${archchroot}" == "archchroot" ]; then
|
||||||
systemctl enable --now snapd.socket
|
systemctl enable --now snapd.socket
|
||||||
if ! [ -d "/snap" ];then
|
if ! [ -d "/snap" ];then
|
||||||
ln -s /var/lib/snapd/snap /snap
|
ln -s /var/lib/snapd/snap /snap
|
||||||
|
@ -383,6 +386,9 @@ if [ "${version}" != "libre" ]; then
|
||||||
if ! [ -f "/usr/share/applications/skype_skypeforlinux.desktop" ];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
|
ln -s /var/lib/snapd/desktop/applications/skype_skypeforlinux.desktop /usr/share/applications/skype_skypeforlinux.desktop
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
systemctl enable snapd.socket
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -34,10 +34,21 @@ function minimalinstallation() {
|
||||||
cp pacman* /etc/
|
cp pacman* /etc/
|
||||||
cp mirrorlist* /etc/pacman.d/
|
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
|
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
|
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
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -393,10 +404,15 @@ if [ "${parameter2}" != "skip" ]; then
|
||||||
filesystem
|
filesystem
|
||||||
|
|
||||||
echo "Jetzt können sie ihr Betriebssystem nach ihren Belieben anpassen :D"
|
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 "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 :)"
|
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
|
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
|
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
|
fi
|
||||||
|
|
||||||
if [ "${parameter3}" != "skip" ]; then
|
if [ "${parameter3}" != "skip" ]; then
|
||||||
|
|
Loading…
Reference in a new issue