Hi Slax ... i have just tested on my fully updated Phinx install for xfce-restore-mbr and all works well here
[root@localhost kori]# xfce-restore-mbr
+ newline='
'
+ type mapdevfs
+ '[' 0 '!=' 0 ']'
+ DIA=gdialog
+ TMP=/tmp/redo-mbr.1160
+ mkdir -p /mnt/loop
+ fdisk -l
+ grep '^/dev.*Linux$'
+ tr -d '*'
+ read dev x x size x
+ mount /dev/sda6 /mnt/loop
++ cat /mnt/loop/etc/mandrake-release
++ awk '{print $1 }'
++ tr '[:upper:]' '[:lower:]'
+ distro=
+ '[' '' = pclinuxos ']'
+ umount /mnt/loop
+ read dev x x size x
+ mount /dev/sda7 /mnt/loop
++ cat /mnt/loop/etc/mandrake-release
++ awk '{print $1 }'
++ tr '[:upper:]' '[:lower:]'
+ distro=pclinuxos
+ '[' pclinuxos = pclinuxos ']'
+ size=72621801
+ echo /dev/sda7 /dev/sda7 off
+ umount /mnt/loop
+ read dev x x size x
+ mount /dev/sdc5 /mnt/loop
mount: /dev/sdc5 already mounted or /mnt/loop busy
mount: according to mtab, /dev/sdc5 is already mounted on /mnt/loop
++ cat /mnt/loop/etc/mandrake-release
++ awk '{print $1 }'
++ tr '[:upper:]' '[:lower:]'
+ distro=pclinuxos
+ '[' pclinuxos = pclinuxos ']'
+ size=49199031
+ echo /dev/sdc5 /dev/sdc5 off
+ umount /mnt/loop
+ read dev x x size x
+ mount /dev/sdc6 /mnt/loop
++ cat /mnt/loop/etc/mandrake-release
++ tr '[:upper:]' '[:lower:]'
++ awk '{print $1 }'
+ distro=
+ '[' '' = pclinuxos ']'
+ umount /mnt/loop
+ read dev x x size x
++ wc -l
+ NUMPCLOS=2
++ cat /tmp/redo-mbr.1160
+ PCLOSPART='/dev/sda7 /dev/sda7 off
/dev/sdc5 /dev/sdc5 off'
+ T1='PCLinuxOS partition selection'
+ M1='No PCLinuxOS installation could be found on your hard disks. The script will be terminated.'
+ '[' 2 -eq 0 ']'
+ '[' 2 -gt 1 ']'
+ M1='More than one PCLinuxOS installation found, Please select the one you want to reinstall mbr from'
+ gdialog --title 'PCLinuxOS partition selection' --radiolist 'More than one PCLinuxOS installation found, Please select the one you want to reinstall mbr from' /dev/sda7 /dev/sda7 off /dev/sdc5 /dev/sdc5 off
++ cat /tmp/redo-mbr.1160
+ FSCHOICE=/dev/sdc5
+ M1='No partition chosen. The script will be terminated.'
+ '[' -z /dev/sdc5 ']'
+ dev=/dev/sdc5
+ NUMPCLOS=1
+ TR=/mnt/loop
+ grub-install --recheck --no-floppy /dev/null
++ grep '(hd0)' /boot/grub/device.map
++ awk '{print $2}'
+ GRUB_MBR=/dev/sda
+ dd if=/dev/sda count=1 bs=512
+ grep -iw grub
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.0180269 s, 28.4 kB/s
Binary file (standard input) matches
+ x=0
+ '[' 0 '!=' 0 ']'
+ BOOTLOADER=GRUB
+ M1='The bootloader configuration of the chosen partition will displayed\n\nYou can edit the the configuration and save your changes\n\nYou will be asked if you want to recreate your bootloader'
+ '[' 1 -eq 1 ']'
+ mount /dev/sdc5 /mnt/loop
+ '[' GRUB = WINDOWS ']'
+ gdialog --title Edit --msgbox 'The bootloader configuration of the chosen partition will displayed\n\nYou can edit the the configuration and save your changes\n\nYou will be asked if you want to recreate your bootloader' 15 80
+ '[' GRUB = LILO ']'
++ grep -v /dev/sdc5
++ grep -v MS
++ grep -v Win
++ wc -l
++ os-prober
+ NUMLINUX=0
+ '[' 0 '!=' 0 ']'
+ mousepad /mnt/loop/boot/grub/menu.lst
+ M1='Do you want to reset your bootloader?'
+ gdialog --title 'PCLinuxOS partition selection' --yesno 'Do you want to reset your bootloader?' 15 80
+ x=0
+ '[' 0 '!=' 0 ']'
+ mount -t proc none /mnt/loop/proc
+ mount -t none /dev /mnt/loop/dev -o bind
+ '[' GRUB = LILO ']'
+ chroot /mnt/loop boot/grub/install.sh
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ Minimal BASH-like line editing is supported. For the first word, TAB
lists possible command completions. Anywhere else TAB lists the possible
completions of a device/filename. ]
grub> root (hd2,4)
Filesystem type is ext2fs, partition type 0x83
grub> setup --stage2=/boot/grub/stage2 (hd0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install --stage2=/boot/grub/stage2 /boot/grub/stage1 d (hd0) (hd0)1+17 p (hd2,4)/boot/grub/stage2 /boot/grub/menu.lst"... succeeded
Done.
grub> quit
+ umount /mnt/loop/dev
+ umount /mnt/loop/proc
+ rm -f /tmp/redo-mbr.1160
Kori