Install vanilla kernel.
This commit is contained in:
parent
7deede64eb
commit
6c47a73d75
12
README.md
12
README.md
|
@ -12,8 +12,10 @@ and [Sakaki's EFI Install Guide](https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Ins
|
||||||
|
|
||||||
What you will get:
|
What you will get:
|
||||||
|
|
||||||
* EFIstub kernel
|
|
||||||
* Minimal system configuration
|
* Minimal system configuration
|
||||||
|
* Temporary vanilla kernel (precompiled by gentoo), in my opinion you
|
||||||
|
should replace this kernel with a custom made kernel for your system.
|
||||||
|
See [Kernel](#Kernel) for details on how to achieve that with low effort.
|
||||||
|
|
||||||
What you can get optionally:
|
What you can get optionally:
|
||||||
|
|
||||||
|
@ -21,15 +23,15 @@ What you can get optionally:
|
||||||
* EFI secure boot
|
* EFI secure boot
|
||||||
* Initramfs (compiled into the kernel for EFIstub)
|
* Initramfs (compiled into the kernel for EFIstub)
|
||||||
* Preconfigured sshd
|
* Preconfigured sshd
|
||||||
* Ansible (packages, user, ssh)
|
* Ansible ready (packages, user, ssh)
|
||||||
|
* Additional packages of your choice (only trivial installations without use flag changes)
|
||||||
|
|
||||||
What you will **NOT** get: (i.e. you will have to do it yourself)
|
What you will **NOT** get: (i.e. you will have to do it yourself)
|
||||||
|
|
||||||
* X11 desktop environment
|
* X11 desktop environment
|
||||||
* A user (except root)
|
* A user for yourself (except `root` obviously)
|
||||||
* Any form of RAID
|
* Any form of RAID
|
||||||
* A specialized kernel (TODO insert links)
|
* A specialized kernel, see [Kernel](#Kernel) for details on how to get one.
|
||||||
|
|
||||||
|
|
||||||
Only necessary configuration is applied to provide a common baseline system.
|
Only necessary configuration is applied to provide a common baseline system.
|
||||||
If you need advanced features such as an initramfs or a different
|
If you need advanced features such as an initramfs or a different
|
||||||
|
|
|
@ -33,15 +33,7 @@ ENABLE_FORMATTING=true
|
||||||
|
|
||||||
|
|
||||||
################################################
|
################################################
|
||||||
# Gentoo configuration
|
# System configuration
|
||||||
|
|
||||||
# The selected gentoo mirror
|
|
||||||
GENTOO_MIRROR="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo"
|
|
||||||
#GENTOO_MIRROR="https://distfiles.gentoo.org"
|
|
||||||
|
|
||||||
# The stage3 tarball to install
|
|
||||||
STAGE3_BASENAME="stage3-amd64-hardened+nomultilib"
|
|
||||||
#STAGE3_BASENAME="stage3-amd64-hardened-selinux+nomultilib"
|
|
||||||
|
|
||||||
# The timezone for the new system
|
# The timezone for the new system
|
||||||
TIMEZONE="Europe/Berlin"
|
TIMEZONE="Europe/Berlin"
|
||||||
|
@ -64,3 +56,22 @@ LOCALE="C.utf8"
|
||||||
# The default keymap for the system
|
# The default keymap for the system
|
||||||
KEYMAP="de-latin1-nodeadkeys"
|
KEYMAP="de-latin1-nodeadkeys"
|
||||||
#KEYMAP="us"
|
#KEYMAP="us"
|
||||||
|
|
||||||
|
|
||||||
|
################################################
|
||||||
|
# Gentoo configuration
|
||||||
|
|
||||||
|
# The selected gentoo mirror
|
||||||
|
GENTOO_MIRROR="https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo"
|
||||||
|
#GENTOO_MIRROR="https://distfiles.gentoo.org"
|
||||||
|
|
||||||
|
# The stage3 tarball to install
|
||||||
|
STAGE3_BASENAME="stage3-amd64-hardened+nomultilib"
|
||||||
|
#STAGE3_BASENAME="stage3-amd64-hardened-selinux+nomultilib"
|
||||||
|
|
||||||
|
# Default accept keywords (enable testing by default)
|
||||||
|
#ACCEPT_KEYWORDS=""
|
||||||
|
ACCEPT_KEYWORDS="~amd64"
|
||||||
|
|
||||||
|
# List of additional packages to install (will be directly passed to emerge)
|
||||||
|
ADDITIONAL_PACKAGES="app-editors/neovim"
|
||||||
|
|
|
@ -315,7 +315,7 @@ gentoo_chroot() {
|
||||||
|
|
||||||
# Copy resolv.conf
|
# Copy resolv.conf
|
||||||
einfo "Preparing chroot environment"
|
einfo "Preparing chroot environment"
|
||||||
cp /etc/resolv.conf "$ROOT_MOUNTPOINT/etc/resolv.conf" \
|
install --mode=0644 /etc/resolv.conf "$ROOT_MOUNTPOINT/etc/resolv.conf" \
|
||||||
|| die "Could not copy resolv.conf"
|
|| die "Could not copy resolv.conf"
|
||||||
|
|
||||||
# Mount virtual filesystems
|
# Mount virtual filesystems
|
||||||
|
|
|
@ -98,22 +98,31 @@ main_install_gentoo_in_chroot() {
|
||||||
einfo "Installing git"
|
einfo "Installing git"
|
||||||
try emerge --verbose dev-vcs/git
|
try emerge --verbose dev-vcs/git
|
||||||
|
|
||||||
#get kernel
|
# Install vanilla kernel, to be able to boot the system.
|
||||||
|
einfo "Installing vanilla kernel"
|
||||||
|
try emerge --verbose sys-kernel/vanilla-kernel
|
||||||
|
|
||||||
#compile minimal kernel to boot system
|
# Install additional packages, if any.
|
||||||
|
if [[ -n "$ADDITIONAL_PACKAGES" ]]; then
|
||||||
#reboot?
|
einfo "Installing additional packages"
|
||||||
|
emerge --autounmask-continue=y -- $ADDITIONAL_PACKAGES
|
||||||
#mount boot partition
|
fi
|
||||||
|
|
||||||
#create kernel
|
|
||||||
|
|
||||||
#create_ansible_user
|
#create_ansible_user
|
||||||
#generate_fresh keys to become mgmnt ansible user
|
#generate_fresh keys to become mgmnt ansible user
|
||||||
#install_ansible
|
#install_ansible
|
||||||
|
|
||||||
einfo "Gentoo installation complete"
|
if ask "Do you want to assign a root password now?"; then
|
||||||
einfo "To chroot into the new system, simply execute the provided 'chroot' wrapper"
|
passwd root
|
||||||
|
einfo "Root password assigned"
|
||||||
|
else
|
||||||
|
passwd -d root
|
||||||
|
ewarn "Root password cleared, set one as soon as possible!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
einfo "Gentoo installation complete."
|
||||||
|
einfo "To chroot into the new system, simply execute the provided 'chroot' wrapper."
|
||||||
|
einfo "Otherwise, you may now reboot your system."
|
||||||
}
|
}
|
||||||
|
|
||||||
main_install() {
|
main_install() {
|
||||||
|
|
Loading…
Reference in New Issue