30 May 2021 |
Nico | Mhm, fair | 09:10:18 |
firefish5000 | personally would use the directory just to put autounmask stuff in one place (zz-autounmask) | 09:22:27 |
By_JumperX4 | Personally I have a package.use/aa-random (manual changes) zz-auto for portage automated changes and some others like kernel for kernel changes, browser, grub, ... | 09:27:08 |
By_JumperX4 | but my package.accept_keywords is in one file, as I always unmask manually | 09:27:24 |
nigerianman | genkernel --makeopts=-j4 --menuconfig --lvm --luks --no-zfs bzImage | 09:27:30 |
nigerianman | i ran this and it worked fine | 09:27:34 |
By_JumperX4 | --no-zfs ? | 09:27:50 |
nigerianman | but when i did genkernel --lvm --luks initramfs it failed | 09:27:58 |
nigerianman | * ERROR: '/lib/modules/5.12.8-gentoo-x86_64' does not exist! Did you forget to compile kernel before building initramfs? If you know what you are doing please set '--no-ramdisk-modules'. | 09:28:16 |
By_JumperX4 | seems like your kernel is not installed | 09:28:31 |
firefish5000 | In reply to @by_jumperx4:kde.org but my package.accept_keywords is in one file, as I always unmask manually ah, failed to read acceptkeywords .... yeah, that doesn't have much in it for me, single file. But use flags for sure | 09:29:38 |
nigerianman | theres a command i have to to install it? | 09:29:45 |
nigerianman | * theres a command i have to do install it? | 09:29:51 |
nigerianman | i thought genkernel installs it | 09:30:19 |
By_JumperX4 | I personally prefer the "manual" way without genkernel | 09:30:25 |
By_JumperX4 | I made some scripts that automate everything | 09:30:39 |
firefish5000 | 4 hrs of config once, and 5 min of oldconfig forever | 09:31:05 |
nigerianman | all the online tutorial use genkernel | 09:31:13 |
nigerianman | * all the online tutorials use genkernel | 09:31:28 |
Nico | In reply to @nigerianman:matrix.org all the online tutorials use genkernel Handbook has manual first: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel | 09:33:00 |
By_JumperX4 | cd /usr/src/linux
make nconfig # do your config
make oldconfig clean prepare all install modules_install -j<number_here>
emerge -v @module-rebuild
dracut --kver $(make kernelversion) --force | 09:33:29 |
By_JumperX4 | and for updates, simply do a script like this :
#!/bin/sh
sh -c "cp /usr/src/linux-$(uname -r) ./.config ; make oldconfig clean prepare all install modules_install -j16 ; emerge -v @module-rebuild ; dracut --kver $(make kernelversion) --force ; sh /boot/grub-update.sh ; echo [DONE] Kernel version: $(make kernelversion)"
/boot/grub-update.sh may be replaced by grub-mkconfig -o /boot/grub/grub.cfg if you want to use grub-mkconfig, I prefer the manual way. It's another script I made
| 09:34:40 |
nigerianman | In reply to @deepbluev7:neko.dev Handbook has manual first: https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel im trying to do luks with this preconfigured .config https://vminko.org/storage/a1/configs/usr/src/linux/config-5.10.27 but i keep messing it up somehow | 09:35:14 |
Nico | Well, I suggest just doing the guide on the wiki | 09:36:35 |
Nico | https://wiki.gentoo.org/wiki/Full_Disk_Encryption_From_Scratch_Simplified | 09:37:34 |
Nico | Well, that also uses genkernel, but... | 09:38:32 |
nigerianman | why do they put it like this in the handbook?
Kernel
Activate the following kernel options:
KERNEL linux-4.9 Enabling LVM
Device Drivers --->
Multiple devices driver support (RAID and LVM) --->
<*> Device mapper support
<*> Crypt target support
<*> Snapshot target
<*> Mirror target
<*> Multipath target
<*> I/O Path Selector based on the number of in-flight I/Os
<*> I/O Path Selector based on the service time
why not just put the lines that you should put in your .config?
| 09:51:19 |
By_JumperX4 | because it's better to use make nconfig | 09:51:46 |
By_JumperX4 | it will automatically enable modules that depends on another module | 09:52:03 |
nigerianman | havent used make nconfig before | 09:54:08 |