From: Ian Kelling Date: Sat, 26 Nov 2016 19:33:33 +0000 (-0800) Subject: just docs X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=commitdiff_plain;h=c90a6fcdae53853a1e7d74dfcfa5d86cb7d81096 just docs --- diff --git a/fai/config/files/boot/chboot/DEFAULT b/fai/config/files/boot/chboot/DEFAULT index b90b926..021c74d 100755 --- a/fai/config/files/boot/chboot/DEFAULT +++ b/fai/config/files/boot/chboot/DEFAULT @@ -30,6 +30,23 @@ With no argument, print available distros DISTRO_NAME is based on the partition names in /boot. For example debianjessie for the partitionn boot_debianjessie. +For a system without libreboot, which is failing completely to +boot on one distro, here is how I did a chboot for it: +# arch-pxe had been run previously +pxe-server treetowl arch +# reboot treetowl into arch live env +pxe-server # disable pxe server +ssh root@treetowl +lsblk # identify boot dev. if boot dev is a raid, this could be repeated on all boot devs. +mount /dev/sdd3 /mnt +mount_point=/mnt/boot_debiantesting # the subvol i want to chboot to +boot_disk=/dev/sdd +grub-bios-setup -d $mount_point/grub/i386-pc -s -m $mount_point/grub/device.map $boot_disk +reboot + +todo: figure out if it's possible to make a multi-distro grub like I have with libreboot +for non-libreboot systems + -r Do not reboot. -d Enable debug output. -h|--help Print help and exit. @@ -94,11 +111,10 @@ boot_disk=${boot_dev%%[0-9]*} # https://www.gnu.org/software/grub/manual/html_node/Device-map.html e grub-bios-setup -d $mount_point/grub/i386-pc -s -m $mount_point/grub/device.map $boot_disk -# todo, mount_point needs subvolid=0 - e umount $mount_point -e mount $boot_disk$grub_extn $mount_point +# i don't change the default subvolid, so the arg here is just being cautious +e mount -o subvolid=0 $boot_disk$grub_extn $mount_point e grub-editenv $mount_point/grubenv set last_boot=/boot_$distro e grub-editenv $mount_point/grubenv set did_fai_check=true e umount $mount_point diff --git a/pxe-server b/pxe-server index 15d52e7..e59854a 100755 --- a/pxe-server +++ b/pxe-server @@ -29,11 +29,19 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR usage() { cat < tftpboot + -r Don't redeploy fai config. For example, if there is a different host that is mid-install.