Hi
Thank you again for the replies and apologies for the delay, I've only just managed to get back on to this after the Christmas break.
I finally managed to get centos 7 installed to another USB by:
A.
Boot the libreboot machine with the installation USB plugged in to my usb hub
edit grub command line:
replace
inst.stage2=hd:LABEL=CENTOS\x207\x20X8
with
inst.stage2=hd:/dev/sdb1
(and also including the intremap=off to get rid of the DMAR error)
press F10 to boot
Work through centos 7 installation wizard:
When selecting installation media insert USB stick to usb hub, select 'Refresh'.
New USB is detected and given as an option for installation device - select it and wipe clean when requested.
Continue through installation
(Note: when I attempted to create a user during installation process it hung - not sure why, so after that I only set a root password)
B.
Insert USB and into bios machine and boot from the live usb just created
Edit the grub config as suggested in the link
https://libreboot.org/docs/gnulinux/ under 'Fedora won’t boot?':
Open /etc/grub.d/10_linux
Set the sixteenbit variable to an empty string, then do:
grub2-mkconfig -o /boot/grub2/grub.cfg
C.
Insert live usb in libreboot machine and Boot to usb
edit grub command line (as previusly):
replace
inst.stage2=hd:LABEL=CENTOS\x207\x20X8
with
inst.stage2=hd:/dev/sdb1
(and also including the intremap=off to get rid of the DMAR error)
F10 to boot
Centos installed on the USB stick now comes up
Thank you all for your help.
A couple more questions came up while I was doing this:
1. what does hd:LABEL=CENTOS\x207\x20X8 and where does it come from ? How does is reference the usb device ?
2. In order to edit the grub configuration I had to boot up on a bios machine to edit the .cfg file and run grub2-mkconfig script. Does anyone know if there is any way of doing this directly when booting up ? (maybe from some sort of grub prompt ?)
3. When I included the GUI in the install (I am doing this to check my touchpad with a different OS) I wanted to boot directly in to the command line to edit the grub config, so I booted in to single user mode by replacing 'ro' in the grub config with 'rw init=/sysroot/bin/bash', boot, then 'chroot /sysroot'.
However I was unable to see any files or dirs in /boot when doing this. Does anyone know why that is ?
With centos 6 I seem to remember you can simply change the runlevel from the grub command line. Can you do that with centos 7 ?