failed running 'chroot '

Bug #1667373 reported by lemoineo
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Grub Customizer
New
Undecided
Unassigned

Bug Description

failed running 'chroot '/media/grub-customizer_recovery_root_mountpoint' grub-mkconfig -o "/boot/grub/grub.cfg"' output:
Création du fichier de configuration GRUB…
/etc/grub.d/10_linux_proxy: 3: /etc/grub.d/10_linux_proxy: /etc/grub.d/bin/grubcfg_proxy: not found
cat: erreur d'écriture: Relais brisé (pipe)

Revision history for this message
lemoineo (lemoineo) wrote :

With 3 roots on 3 disks
One with ubuntu 16/10
One with xubuntu 16.10
The last with linuxmint 16.04
it apair on the last root directory
Grub Customizer is install on the 3 systems
Olivier

Revision history for this message
Daniel Richter (danielrichter2007) wrote :

The error message says that the grubcfg_proxy is missing. This is a small part of grub customizer used to filter the original configuration when running grub-mkconfig or update-grub. Usually it is copied from /usr/lib/grub-customizer/grubcfg_proxy to /etc/grub.d/bin/grubcfg_proxy if the modifications done with grub customizer are requiring that filter (this is the case for most of the menuentry changes).

Now the question is: Why isn't it copied properly.

I need some more output of Grub Customizer.

Run Grub Customizer from terminal using the command `sudo grub-customizer verbose` and paste the terminal output here please.

Revision history for this message
Jess Jones (jessjones) wrote :

I'm running into this issue today. I just installed grub-customizer, the "About" screen shows v5.1.0.

I'm not sure the `verbose` option provides any additional useful output, but FWIW here it is:

```
 -> main/refresh-tab

 -> main/save

 *** writing settings file
     [font file exists]
 -> theme/save

 *** writing grub list configuration
 -> theme/post-save
  -> settings/sync
   -> settings/sync
   -> theme/update-font-size
  -> theme/update-font-size

 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

     [Generating grub configuration file ...]
 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

     [using custom appearance settings]
 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

     [/etc/grub.d/06_linux_proxy: 3: /etc/grub.d/06_linux_proxy: /etc/grub.d/bin/grubcfg_proxy: not found]
 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

     [cat: write error: Broken pipe]
 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

 -> main/sync-save-state
     [running MainControllerImpl::syncListView_save]
     [MainControllerImpl::syncListView_save completed]

Gtk-Message: 16:24:10.462: GtkDialog mapped without a transient parent. This is discouraged.
 -> main/exit
```

My main Ubuntu installation/current environment is on /dev/sda5; the grub configuration I'm attempting to modify is on a USB stick on /dev/sdb1 (formatted ext2, if that matters).

Revision history for this message
Daniel Richter (danielrichter2007) wrote :

The error message says that /etc/grub.d/bin/grubcfg_proxy was not found. However it may be just not executable from your live environment because of incompatible executable formats (you cannot operate on a 64 bit system when using 32 bit live distro)

Please try:
sudo mount /dev/sda5 /mnt
sudo ls /mnt/etc/grub.d/bin/grubcfg_proxy
echo 123 | sudo /mnt/etc/grub.d/bin/grubcfg_proxy "+*"
sudo umount /mnt

Revision history for this message
Jess Jones (jessjones) wrote :

I'm doing it the other way around; the USB stick (which has a full 32-bit Debian install, not just a live distro) is what I'm trying to edit, and I'm running from my Ubuntu 64-bit install on my laptop. Would that still cause a problem?

With /dev/sdb1 (boot partition of USB drive) mounted at `/mnt`:

$ sudo ls /mnt/etc/grub.d/bin/grubcfg_proxy
-rwxr-xr-x 1 root root 469160 Jul 25 11:39 /mnt/etc/grub.d/bin/grubcfg_proxy
$

$ echo 123 | sudo bin/grubcfg_proxy "+*"

123
$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.