fix
This commit is contained in:
parent
62c3b104a1
commit
6c0ee575e9
1 changed files with 25 additions and 10 deletions
25
arch-install
25
arch-install
|
@ -9,10 +9,9 @@ repo="SpectreOS"
|
||||||
user="user1"
|
user="user1"
|
||||||
version="%VERSION%"
|
version="%VERSION%"
|
||||||
|
|
||||||
if [ "$2" == "libre" ]; then
|
[[ -n "${2}" ]] && version=${2}
|
||||||
echo "Libre mode Enabled!!!"
|
|
||||||
version="libre"
|
[[ "$version" == "%VERSION%" ]] && version=voll
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ $EUID -ne 0 ]]; then
|
if [[ $EUID -ne 0 ]]; then
|
||||||
echo "This script must be run as root" 1>&2
|
echo "This script must be run as root" 1>&2
|
||||||
|
@ -968,9 +967,17 @@ then
|
||||||
else
|
else
|
||||||
partionierenohneswap
|
partionierenohneswap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${name}" == "noinstall" ]; then
|
||||||
echo "installation"
|
echo "installation"
|
||||||
installation
|
installation
|
||||||
arch-chroot ${mountpoint} mkinitcpio -p linux-${version}
|
fi
|
||||||
|
|
||||||
|
if [ "${version}" == "libre" ]; then
|
||||||
|
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
||||||
|
else
|
||||||
|
arch-chroot ${mountpoint} mkinitcpio -p linux
|
||||||
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
if [ "${boot}" == "grub" ]
|
if [ "${boot}" == "grub" ]
|
||||||
then
|
then
|
||||||
|
@ -989,9 +996,17 @@ elif [ "${Partition}" == "bios" ]; then
|
||||||
else
|
else
|
||||||
partionierenohneswap
|
partionierenohneswap
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "${name}" == "noinstall" ]; then
|
||||||
echo "installation"
|
echo "installation"
|
||||||
installation
|
installation
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "${version}" == "libre" ]; then
|
||||||
|
arch-chroot ${mountpoint} mkinitcpio -p linux-libre
|
||||||
|
else
|
||||||
arch-chroot ${mountpoint} mkinitcpio -p linux
|
arch-chroot ${mountpoint} mkinitcpio -p linux
|
||||||
|
fi
|
||||||
arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device}
|
arch-chroot ${mountpoint} grub-install --target=i386-pc --recheck ${device}
|
||||||
arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg
|
arch-chroot ${mountpoint} grub-mkconfig -o /boot/grub/grub.cfg
|
||||||
#removeinstaller
|
#removeinstaller
|
||||||
|
|
Loading…
Reference in a new issue