This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%post | |
# Setup grub2 keyboard layout. | |
KEYBOARD_LAYOUT=at | |
[ -d /sys/firmware/efi ] \ | |
&& boot_directory=/boot/efi/EFI/centos \ | |
|| boot_directory=/boot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RAW: https://bit.ly/2UvzYZ6 | |
# * Boot into the Rescue option of the ISO. | |
# * ALT+TAB to get into shell or wait for the option 3) | |
# * setup networking | |
# ncmli connection up enp0s3 | |
# * setup keymap to not get insane | |
# localectl set-keymap at | |
# * prepare overlayfs | |
mkdir /tmp/upper /tmp/work /tmp/root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# ------------------ | |
# IT DOES NOT WORK, cannot create a sane ISO with mkisofs | |
# ------------------ | |
config="${1:?please pass the config file path as argument}" | |
keymap="${2:-NO}" # keymap in /usr/share/{syscons,vt}/keymaps/* (or NO). | |
set -euo pipefail |