feat: always install linux-firmware (fixes #50)
This commit is contained in:
parent
3e18167a06
commit
1975f75d02
|
@ -48,6 +48,10 @@ to emerge. The critical commands will ask you what to do in case of a failure. I
|
||||||
problem you cannot solve, you might want to consider getting in contact with some experienced people
|
problem you cannot solve, you might want to consider getting in contact with some experienced people
|
||||||
on [IRC](https://www.gentoo.org/get-involved/irc-channels/) or [Discord](https://discord.com/invite/gentoolinux).
|
on [IRC](https://www.gentoo.org/get-involved/irc-channels/) or [Discord](https://discord.com/invite/gentoolinux).
|
||||||
|
|
||||||
|
If you need to enter an installed system in a chroot to fix something (e.g. after rebooting your live system),
|
||||||
|
you can always clone the installer, mount your main drive under `/mnt` and use `./install --chroot /mnt` to
|
||||||
|
just chroot into your system.
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
|
||||||
The installer performs the following main steps (in roughly this order),
|
The installer performs the following main steps (in roughly this order),
|
||||||
|
|
|
@ -74,6 +74,7 @@ function configure_portage() {
|
||||||
touch_or_die 0644 "/etc/portage/package.use/zz-autounmask"
|
touch_or_die 0644 "/etc/portage/package.use/zz-autounmask"
|
||||||
mkdir_or_die 0755 "/etc/portage/package.keywords"
|
mkdir_or_die 0755 "/etc/portage/package.keywords"
|
||||||
touch_or_die 0644 "/etc/portage/package.keywords/zz-autounmask"
|
touch_or_die 0644 "/etc/portage/package.keywords/zz-autounmask"
|
||||||
|
touch_or_die 0644 "/etc/portage/package.license"
|
||||||
|
|
||||||
if [[ $SELECT_MIRRORS == "true" ]]; then
|
if [[ $SELECT_MIRRORS == "true" ]]; then
|
||||||
einfo "Temporarily installing mirrorselect"
|
einfo "Temporarily installing mirrorselect"
|
||||||
|
@ -274,6 +275,11 @@ function install_kernel() {
|
||||||
else
|
else
|
||||||
install_kernel_bios
|
install_kernel_bios
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
einfo "Installing linux-firmware"
|
||||||
|
echo "sys-kernel/linux-firmware linux-fw-redistributable no-source-code" >> /etc/portage/package.license \
|
||||||
|
|| die "Could not write to /etc/portage/package.license"
|
||||||
|
try emerge --verbose linux-firmware
|
||||||
}
|
}
|
||||||
|
|
||||||
function add_fstab_entry() {
|
function add_fstab_entry() {
|
||||||
|
@ -382,6 +388,8 @@ EOF
|
||||||
try emerge --verbose sys-fs/btrfs-progs
|
try emerge --verbose sys-fs/btrfs-progs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
try emerge --verbose dev-vcs/git
|
||||||
|
|
||||||
# Install zfs kernel module and tools if we used zfs
|
# Install zfs kernel module and tools if we used zfs
|
||||||
if [[ $USED_ZFS == "true" ]]; then
|
if [[ $USED_ZFS == "true" ]]; then
|
||||||
einfo "Installing zfs"
|
einfo "Installing zfs"
|
||||||
|
@ -469,7 +477,8 @@ EOF
|
||||||
einfo "Gentoo installation complete."
|
einfo "Gentoo installation complete."
|
||||||
[[ $USED_LUKS == "true" ]] \
|
[[ $USED_LUKS == "true" ]] \
|
||||||
&& einfo "A backup of your luks headers can be found at '$LUKS_HEADER_BACKUP_DIR', in case you want to have a backup."
|
&& einfo "A backup of your luks headers can be found at '$LUKS_HEADER_BACKUP_DIR', in case you want to have a backup."
|
||||||
einfo "You may now reboot your system."
|
einfo "You may now reboot your system or execute ./install --chroot $ROOT_MOUNTPOINT to enter your system in a chroot."
|
||||||
|
einfo "Chrooting in this way is always possible in case you need to fix something after rebooting."
|
||||||
}
|
}
|
||||||
|
|
||||||
function main_install() {
|
function main_install() {
|
||||||
|
|
Loading…
Reference in New Issue