versions-fix
This commit is contained in:
parent
ab80c464fa
commit
ae5f0b5f7f
3 changed files with 22 additions and 15 deletions
|
@ -553,11 +553,7 @@ if [ "${vollinstallation}" != "n" ]; then
|
|||
cd /
|
||||
|
||||
# iso_name
|
||||
if [ "${version}" == "libre" ]; then
|
||||
echo "${repo}-libre" > /etc/hostname
|
||||
else
|
||||
echo ${repo} > /etc/hostname
|
||||
fi
|
||||
echo "${repo}-${version}" > /etc/hostname
|
||||
|
||||
# uefi-boot
|
||||
cp /opt/${repo1}/uefi-boot.sh /usr/bin/uefi-boot
|
||||
|
@ -568,16 +564,16 @@ if [ "${vollinstallation}" != "n" ]; then
|
|||
chmod 755 /usr/bin/write_cowspace
|
||||
|
||||
# installer-/usr/bin/
|
||||
if [ "${version}" == "libre" ]; then
|
||||
sed "s|%VERSION%|-libre|g;" /opt/${repo}/arch-install > /usr/bin/arch-install
|
||||
else
|
||||
sed "s|%VERSION%||g;" /opt/${repo}/arch-install > /usr/bin/arch-install
|
||||
fi
|
||||
sed "s|%VERSION%|${version}|g;" /opt/${repo}/arch-install > /usr/bin/arch-install
|
||||
chmod 755 /usr/bin/arch-install
|
||||
|
||||
# installer
|
||||
mkdir -p /usr/share/applications/
|
||||
cp /opt/${repo}/arch-install.desktop /usr/share/applications/
|
||||
if [ "${version}" == "libre" ]; then
|
||||
cp /opt/${repo}/arch-install-libre.desktop /usr/share/applications/arch-install.desktop
|
||||
else
|
||||
cp /opt/${repo}/arch-install.desktop /usr/share/applications/arch-install.desktop
|
||||
fi
|
||||
chmod 755 /usr/share/applications/arch-install.desktop
|
||||
|
||||
# install-picture
|
||||
|
|
|
@ -15,7 +15,7 @@ fi
|
|||
|
||||
if [ "$2" == "libre" ]; then
|
||||
echo "Libre mode Enabled!!!"
|
||||
version="-libre"
|
||||
version="libre"
|
||||
fi
|
||||
|
||||
if [[ $EUID -ne 0 ]]; then
|
||||
|
@ -339,7 +339,7 @@ function installation {
|
|||
fi
|
||||
|
||||
#hostname
|
||||
echo "${repo}${version}" > ${mountpoint}/etc/hostname
|
||||
echo "${repo}-${version}" > ${mountpoint}/etc/hostname
|
||||
|
||||
if [ "${usbsecret}" == "y" ]; then
|
||||
usbsecret
|
||||
|
@ -968,7 +968,7 @@ then
|
|||
fi
|
||||
echo "installation"
|
||||
installation
|
||||
arch-chroot ${mountpoint} mkinitcpio -p linux${version}
|
||||
arch-chroot ${mountpoint} mkinitcpio -p linux-${version}
|
||||
echo ""
|
||||
if [ "${boot}" == "grub" ]
|
||||
then
|
||||
|
@ -1012,7 +1012,7 @@ if [ "${update}" != "n" ] && [ "${offline}" == "n" ] || [ "${installationfehler}
|
|||
if [ "$graphical" != "n" ]
|
||||
then
|
||||
cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/root/arch-graphical-install-auto
|
||||
if [ "${version}" == "-libre" ]; then
|
||||
if [ "${version}" == "libre" ]; then
|
||||
arch-chroot ${mountpoint} /root/arch-graphical-install-auto libre
|
||||
else
|
||||
arch-chroot ${mountpoint} /root/arch-graphical-install-auto voll
|
||||
|
|
11
arch-install-libre.desktop
Executable file
11
arch-install-libre.desktop
Executable file
|
@ -0,0 +1,11 @@
|
|||
[Desktop Entry]
|
||||
Type=Application
|
||||
Icon=/usr/share/pixmaps/install.png
|
||||
Name[de]=Betriebssystem installieren
|
||||
Name[en]=Install the operating system
|
||||
Exec=/usr/bin/arch-install "" libre
|
||||
Terminal=true
|
||||
Categories=ConsoleOnly;System;
|
||||
StartupNotify=false
|
||||
Comment=
|
||||
Path=
|
Loading…
Reference in a new issue