Installing drunk with usb external drive
- 21.08.2022 ( DD:MM:YY )
- Default user name and passwd is
* username:password
$ root : toor
$ drunk:drunk
Updating & upgrading system
$ bottle -Syu
Partitioning
- Here we will use tool called parted
- The drive i will use for this guide is at /dev/sdb as sda is install media
$ parted /dev/sdb
// If you got some old partitions there then you can remove this ( rm x ) x as number of partition
$ print
// Set partition table to gpt
$ mklabel gpt
// Create esp partition for uefi ( 1gb as of initrd now)
$ mkpart primary fat32 1MB 1024MB
$ set 1 esp on
// create main ext4 rootfs partition
$ mkpart primary ext4 1024MB 85GB
* ctrl + c to exit
Formating
$ mkfs -t vfat /dev/sdb1
$ mkfs -t ext4 /dev/sdb2
$ e2label /dev/sdb2 drunk
Mounting
$ mount /dev/sdb2 /mnt
$ mkdir -vp /mnt/boot
$ mount /dev/sdb1 /mnt/boot
bottle-strap
$ cd /
$ bottle-strap /mnt base-drunk
Enabling services
* For internet access
$ systemctl enable dhcpcd
* Just in-case if systemd thinks to give no login tty
$ systemctl enable getty@tty1
$ systemctl enable getty@tty2
Adding sd-boot entries
$ drunk-chroot /mnt
// Create machine-id
$ dbus-uuidgen > /etc/machine-id
// If esp cant be found then redo parted ( esp enable part )
$ bootctl install
$ cd /boot
$ dracut -f initrd.img
$ passwd root
Adding boot configs
cd /boot/loader
and add this
$ nano loader.config
default drunk
timeout 4
console-mode max
editor no
- Now cd /boot/loader/entries
- If LABEL does not work then see if PARTLABEL is needed ( can be seen in /dev/disk/by-partlabel or label )
$ nano drunk.conf
title Drunk 2022.2
linux /vmlinuz-drunk
initrd /initrd.img
options root=LABEL=drunk rw audit=0
Booting
// exit chroot
$ exit
$ umount /mnt/boot
$ umount /mnt
$ sync
$ reboot