Xen_Dom0_round1
INSTALLATION source:
creating media
during install:
http://wiki.alpinelinux.org/wiki/Setting_up_LVM_on_GPT-labeled_disks
EXCEPTIONS:
- lvcreate vg0 -n alpine_swap -L 4G
- mkswap /dev/vg0/alpine_swap
- swapon /dev/vg0/alpine_swap.
- permanent: IN /ETC/FSTAB
- /dev/vg0/alpine_swap swap swap defaults 0 0 ---- DOESN't WORK
formatting boot:
ext4
===============
OTHER READS:
http://wiki.alpinelinux.org/wiki/Setting_up_disks_manually
error
mount: mounting /dev/vg0/alpine_root on /sysroot failed: No such file or directory
Mouting root failed
initramfs emergency recovery shell launched.
dmesg | less
kernel command line: root=/dev/vg0/alpine_root modules=sd-mod,usb-storage,ext4 nomodeset quiet
ATTACHED - LIST OF MIRROR SITES from: http://rsync.alpinelinux.org/alpine/MIRRORS.txt
- Boot from USB
- started dhcp networking for eth0
- added the UK repository
- update & upgrade
vgchange -ay
mkdir /media/newroot
mkdir /media/newroot/boot
mount -t ext4 /dev/vg0/alpine_root /media/newroot
mount -t ext4 /dev/nvme0n1p2 /media/newroot/boot
vi /media/newroot/etc/fstab
-- add entry:
/dev/vg0/alpine_swap swap sw 0 0 -- NOT WORKING
apk add --root=/media/newroot --initdb apk-tools mkinitfs
....this adds mkinitfs to the mount filesystem
cp /media/newroot/lib/modules/4.1.15-2-grsec/kernel/drivers/block/nvme.ko /media/newroot/etc/mkinitfs/features.d/
cd /media/newroot/etc/mkinitfs/features.d/
vi nvme.modules
--- add line kernel/driver/block/nvme*
vi /media/newroot/etc/mkinitfs/mkinitfs.conf
mount -o bind /proc /media/newroot/proc
mount -o bind /dev /media/newroot/dev
mount -o bind /dev/pts /media/newroot/dev/pts
mount -o bind /sys /media/newroot/sys
chroot /media/newroot /bin/bash
mkinitfs -f /etc/fstab
exit
then check the size of initramfs-grsec in the following two dirs:
ls -lh /media/sdb/boot/ <-- ORIGINAL 15.3 megs
ls -lh /media/newroot/boot/ <-- updated and bloated 24.3 megs.
umount /media/newroot/boot
umount /media/newroot/dev/pts
umount /media/newroot/dev
umount /media/newroot/proc
umount /media/newroot/sys
umount /media/newroot/