fix
This commit is contained in:
parent
7e3daa4578
commit
e1af5fa042
2 changed files with 41 additions and 8 deletions
|
@ -157,6 +157,16 @@ ${userpass}
|
||||||
EOT
|
EOT
|
||||||
mkdir -p /home/"$username"/
|
mkdir -p /home/"$username"/
|
||||||
userrechte
|
userrechte
|
||||||
|
|
||||||
|
# sudoers/wheel
|
||||||
|
|
||||||
|
echo "Lege $SUDOERS neu an!!!"
|
||||||
|
|
||||||
|
echo "root ALL=(ALL) NOPASSWD: ALL" > $SUDOERS
|
||||||
|
|
||||||
|
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> $SUDOERS
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function copyconfig() {
|
function copyconfig() {
|
||||||
|
@ -287,14 +297,6 @@ fi
|
||||||
|
|
||||||
gitclone
|
gitclone
|
||||||
|
|
||||||
# sudoers/wheel
|
|
||||||
|
|
||||||
echo "Lege $SUDOERS neu an!!!"
|
|
||||||
|
|
||||||
echo "root ALL=(ALL) NOPASSWD: ALL" > $SUDOERS
|
|
||||||
|
|
||||||
echo "%wheel ALL=(ALL) NOPASSWD: ALL" >> $SUDOERS
|
|
||||||
|
|
||||||
# Your commands
|
# Your commands
|
||||||
|
|
||||||
# startup
|
# startup
|
||||||
|
|
31
arch-install
31
arch-install
|
@ -28,11 +28,42 @@ function minimalinstallation() {
|
||||||
pacstrap -c -d -G -M ${mountpoint} $(cat /opt/${repo}/base.txt)
|
pacstrap -c -d -G -M ${mountpoint} $(cat /opt/${repo}/base.txt)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
# hooks
|
||||||
|
cp -v /opt/${repo}/install/archiso* ${mountpoint}/usr/lib/initcpio/install/
|
||||||
|
cp -v /opt/${repo}/hooks/archiso* ${mountpoint}/usr/lib/initcpio/hooks/
|
||||||
|
|
||||||
|
cp -v /opt/${repo}/script/archiso* ${mountpoint}/usr/lib/initcpio/
|
||||||
|
|
||||||
|
cp -v /opt/${repo}/install/cow_device ${mountpoint}/usr/lib/initcpio/install/
|
||||||
|
cp -v /opt/${repo}/hooks/cow_device ${mountpoint}/usr/lib/initcpio/hooks/
|
||||||
|
|
||||||
|
# scripts
|
||||||
|
cp /opt/${repo}/arch-graphical-install-auto ${mountpoint}/usr/bin/arch-graphical-install-auto
|
||||||
|
chmod +x ${mountpoint}/usr/bin/arch-graphical-install-auto
|
||||||
|
|
||||||
|
# mirrors
|
||||||
|
|
||||||
|
# pacman-config
|
||||||
|
if [ "${version}" == "libre" ]; then
|
||||||
|
cp /opt/${repo}/pacman.conf_libre ${mountpoint}/etc/pacman.conf
|
||||||
|
elif [ "${version}" == "manjaro" ]; then
|
||||||
|
cp /opt/${repo}/pacman.conf_manjaro ${mountpoint}/etc/pacman.conf
|
||||||
|
else
|
||||||
|
cp /opt/${repo}/pacman.conf ${mountpoint}/etc/pacman.conf
|
||||||
|
fi
|
||||||
|
|
||||||
|
# mirrorlist
|
||||||
|
cp /opt/${repo}/mirrorlist* ${mountpoint}/etc/pacman.d/
|
||||||
|
|
||||||
# aurinstaller
|
# aurinstaller
|
||||||
cp /opt/${repo}/aurinstall.sh ${mountpoint}/usr/bin/aurinstaller
|
cp /opt/${repo}/aurinstall.sh ${mountpoint}/usr/bin/aurinstaller
|
||||||
chmod +x ${mountpoint}/usr/bin/aurinstaller
|
chmod +x ${mountpoint}/usr/bin/aurinstaller
|
||||||
|
|
||||||
|
echo "${name}´s_PC-${version}" > ${mountpoint}/etc/hostname
|
||||||
|
|
||||||
arch-chroot ${mountpoint} arch-graphical-install-auto adduser user1 user1
|
arch-chroot ${mountpoint} arch-graphical-install-auto adduser user1 user1
|
||||||
|
arch-chroot ${mountpoint} pacman -Syu --needed --noconfirm
|
||||||
arch-chroot ${mountpoint} su "$user" -c "aurinstaller "https://aur.archlinux.org/plymouth.git""
|
arch-chroot ${mountpoint} su "$user" -c "aurinstaller "https://aur.archlinux.org/plymouth.git""
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue