This commit is contained in:
teldra 2022-02-09 14:00:29 +01:00
parent d455e613e0
commit c3183eed1e
3 changed files with 25 additions and 20 deletions

View File

@ -1,6 +1,9 @@
packages() {
addpkg base-system sudo void-repo-multilib void-repo-multilib-nonfree void-repo-nonfree lvm2 cronie socklog-void ntp xtools wireguard-tools gnupg progress pwgen net-tools ncdu nmap mtr bind-utils iotop hdparm smartmontools htop git neovim btrbk croc grub-btrfs nano mbuffer cryptsetup psmisc pinentry-tty pciutils iproute2 iputils iperf unzip usbutils wget
ignorepkg nvi
if [ "${EFI}" == "1" ]; then
addpkg ckbcomp
fi
}
config() {

View File

@ -27,6 +27,7 @@ config() {
fi
if ! [ "${KEY_LANG}" == "en" ]; then
if [ "${EFI}" == "1" ]; then
VGUUID=$(vgdisplay |grep UUID|awk '{print $3}')
LVUUID=$(lvdisplay ${TARGETNAME_UNDERSCORE}-root |grep UUID|awk '{print $3}')
rl=$(basename $(readlink "${TARGET_PHY_ID}-part${TARGET_PART}"))
@ -49,6 +50,7 @@ config() {
cp -f grubx64.efi /boot/efi/EFI/void/grubx64.efi
rm -rf grubx64.efi memdisk.tar ${KEY_LANG}.gkb
fi
if ! grep -q rd.console.keymap /etc/default/grub; then
sed -i "/^GRUB_CMDLINE_LINUX_DEFAULT/s/=\"/=\" rd.vconsole.keymap=${L2} /" /etc/default/grub
fi

View File

@ -320,7 +320,7 @@ do_chroot() {
cat <<EOF > "${target}/tmp/vinstaller/main_chroot"
#!/usr/bin/bash
cd /tmp/vinstaller
FILESDIR=/tmp/vinstaller/files
. /tmp/vinstaller/functions