Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
~# grub-install --recheck --debug /dev/sda
+ bootdir=/boot
+ grubdir=/boot/grub
+ device_map=/boot/grub/device.map
+ set /usr/sbin/grub dummy
+ test -f /usr/sbin/grub
+ :
+ test -f /usr/lib/grub/x86_64-pc/stage1
+ :
+ test -f /usr/lib/grub/x86_64-pc/stage2
+ :
+ test -d /boot
+ test -d /boot/grub
+ test yes = yes
+ rm -f /boot/grub/device.map
+ test -f /boot/grub/device.map
+ test -n /bin/tempfile --prefix=grub
+ /bin/tempfile --prefix=grub
+ log_file=/tmp/grubDb4jer
+ sync
+ /usr/sbin/grub --batch --device-map=/boot/grub/device.map
Probing devices to guess BIOS drives. This may take a long time.
+ grep Error [0-9]*: /tmp/grubDb4jer
+ rm -f /tmp/grubDb4jer
+ + + uniq -d
sed -n 1p
sort
+ sed -n /^([fh]d[0-9]*)/s/\(^(.*)\).*/\1/p /boot/grub/device.map
+ tmp=
+ test -n
+ find_device
+ sed -n s%.*\(/dev/[^ ]*\).*%\1%p
+ df /
+ tmp_fname=/dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ test -z /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ resolve_symlink /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ tmp_fname=/dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ test -L /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ sed -n s%.*-> \(.*\)%\1%p
+ ls -al /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ tmp_new_fname=../../sda3
+ test -z ../../sda3
+ sed s%/[^/]*$%%
+ echo /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ tmp_fname=/dev/disk/by-uuid/../../sda3
+ test -L /dev/disk/by-uuid/../../sda3
+ echo /dev/disk/by-uuid/../../sda3
+ tmp_fname=/dev/disk/by-uuid/../../sda3
+ echo /dev/disk/by-uuid/../../sda3
+ root_device=/dev/disk/by-uuid/../../sda3
+ find_device /boot
+ sed -n s%.*\(/dev/[^ ]*\).*%\1%p
+ df /boot/
+ tmp_fname=/dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ test -z /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ resolve_symlink /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ tmp_fname=/dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ test -L /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ sed -n s%.*-> \(.*\)%\1%p
+ ls -al /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ tmp_new_fname=../../sda3
+ test -z ../../sda3
+ + sed s%/[^/]*$%%
echo /dev/disk/by-uuid/5ee01e15-7ffe-4724-a7af-605f1f037123
+ tmp_fname=/dev/disk/by-uuid/../../sda3
+ test -L /dev/disk/by-uuid/../../sda3
+ echo /dev/disk/by-uuid/../../sda3
+ tmp_fname=/dev/disk/by-uuid/../../sda3
+ echo /dev/disk/by-uuid/../../sda3
+ bootdir_device=/dev/disk/by-uuid/../../sda3
+ resolve_symlink /dev/sda
+ tmp_fname=/dev/sda
+ test -L /dev/sda
+ echo /dev/sda
+ install_device=/dev/sda
+ convert /dev/sda
+ test -e /dev/sda
+ :
+ echo /dev/sda
+ sed -e s%\(\(v\|s\|h\|xv\)d[a-z]\)[0-9]*$%\1% -e s%\(d[0-9]*\)p[0-9]*$%\1% -e s%\(fd[0-9]*\)$%\1% -e s%/part[0-9]*$%/disc% -e s%\(c[0-7]d[0-9]*\).*$%\1% -e s%\(e[0-9]\.[0-9]*\).*$%\1%
+ tmp_disk=/dev/sda
+ sed -e s%.*/\(v\|s\|h\|xv\)d[a-z]\([0-9]*\)$%\2% -e s%.*d[0-9]*p%% -e s%.*/fd[0-9]*$%% -e s%.*/floppy/[0-9]*$%% -e s%.*/\(disc\|part\([0-9]*\)\)$%\2% -e s%.*c[0-7]d[0-9]*p*%% -e s%.*e[0-9]\.[0-9]*p%% -e s%.*e[0-9]\.[0-9]*$%%
+ echo /dev/sda
+ tmp_part=
+ + grepgrep /dev/sda *$
-v ^# /boot/grub/device.map
+ sed s%.*\(([hf]d[0-9][a-z0-9,]*)\).*%\1%
+ tmp_drive=(hd0)
+ test x(hd0) = x
+ test x != x
+ echo (hd0)
+ install_drive=(hd0)
+ test x(hd0) = x
+ test x/dev/disk/by-uuid/../../sda3 != x/dev/disk/by-uuid/../../sda3
+ convert /dev/disk/by-uuid/../../sda3
+ test -e /dev/disk/by-uuid/../../sda3
+ :
+ echo /dev/disk/by-uuid/../../sda3
+ sed -e s%\(\(v\|s\|h\|xv\)d[a-z]\)[0-9]*$%\1% -e s%\(d[0-9]*\)p[0-9]*$%\1% -e s%\(fd[0-9]*\)$%\1% -e s%/part[0-9]*$%/disc% -e s%\(c[0-7]d[0-9]*\).*$%\1% -e s%\(e[0-9]\.[0-9]*\).*$%\1%
+ tmp_disk=/dev/disk/by-uuid/../../sda
+ echo /dev/disk/by-uuid/../../sda3
+ sed -e s%.*/\(v\|s\|h\|xv\)d[a-z]\([0-9]*\)$%\2% -e s%.*d[0-9]*p%% -e s%.*/fd[0-9]*$%% -e s%.*/floppy/[0-9]*$%% -e s%.*/\(disc\|part\([0-9]*\)\)$%\2% -e s%.*c[0-7]d[0-9]*p*%% -e s%.*e[0-9]\.[0-9]*p%% -e s%.*e[0-9]\.[0-9]*$%%
+ tmp_part=3
+ grep -v ^# /boot/grub/device.map
+ grep /dev/disk/by-uuid/../../sda *$
+ sed s%.*\(([hf]d[0-9][a-z0-9,]*)\).*%\1%
+ tmp_drive=
+ test x = x
+ echo /dev/disk/by-uuid/../../sda3 does not have any corresponding BIOS drive.
/dev/disk/by-uuid/../../sda3 does not have any corresponding BIOS drive.
+ mdadm --detail /dev/disk/by-uuid/../../sda3
+ exit 1
+ root_drive=
+ test x = x
+ exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment