Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/turulomio/mykernel
My kernel scripts to compile it in Gentoo systems
https://github.com/turulomio/mykernel
cryptsetup gentoo grub initramfs-generator kernel
Last synced: about 2 months ago
JSON representation
My kernel scripts to compile it in Gentoo systems
- Host: GitHub
- URL: https://github.com/turulomio/mykernel
- Owner: turulomio
- License: gpl-3.0
- Created: 2020-01-09T12:00:02.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-09T19:57:06.000Z (7 months ago)
- Last Synced: 2024-07-10T00:28:43.975Z (7 months ago)
- Topics: cryptsetup, gentoo, grub, initramfs-generator, kernel
- Language: Python
- Homepage:
- Size: 324 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# MyKernel
## Gentoo kernel with root luks exampleWe create luks partition with `cryptsetup`
With `blkid` we can see created partitions UUID
```
/dev/nvme0n1p1: UUID="51F2-B573" BLOCK_SIZE="512" TYPE="vfat" PARTUUID="3bb72034-0028-4b4b-a022-86dcf77991bf"
/dev/nvme0n1p2: UUID="e3905174-0bfc-406c-8958-8004cfec6528" TYPE="crypto_LUKS" PARTUUID="01037e81-d022-c041-a85e-6e872cbcb791"
/dev/mapper/root: UUID="ebc859bc-a777-4953-9c92-178c89b52222" BLOCK_SIZE="4096" TYPE="ext4"
```
Gentoo package install-kernel must have dracut USEWe edit /etc/dracut.conf
```
add_dracutmodules+=" crypt dm rootfs-block "
kernel_cmdline+=" root=UUID=ebc859bc-a777-4953-9c92-178c89b52222 rd.luks.uuid=e3905174-0bfc-406c-8958-8004cfec6528 "
```We edit /etc/default/grub
```
GRUB_CMDLINE_LINUX_DEFAULT="crypt_root=nvme0n1p2"
```## Changelog
### 0.11.0 (2024-01-28)
- Added dracut support. See /etc/mykernel/mykernel.ini### 0.10.0 (2023-06-15)
- Migrated to poetry project### 0.9.0
- Added gcc library to initramfs, needed in some environments.### 0.8.0
- Ccache is used by default.
- Removed --ccache argument.
- Portage CCACHE_DIR is used emerging kernel modules.### 0.7.0
- Ccache directory is now /var/cache/ccache_mykernel.### 0.6.0
- Added ccache support with --ccache parameter.### 0.5.0
- Fixed bug when cpufreq isn't configured in kernel.### 0.4.0
- Added suppor for MBR disk installations.
- Added man documentation.
- Improved spanish translations.### 0.3.0
- Solved critical bug due to a bad return### 0.2.0
- Converted to a python module
- You can set your parameters in /etc/mykernel/mykernel.ini### 0.1.0
- Imported from old scripts