Comment 14 for bug 1969353

Revision history for this message
Simon Chopin (schopin) wrote :

I just realized that my workaround only worked as long as the grub-customizer was in the archive. Since we've removed it due to the above issues, the workaround would probably be something like this (completely untested):

orig_dir=/etc/grub.d/proxifiedScripts
main_dir=/etc/grub.d
backup_dir=/etc/grub.d/proxyscript_backup

mkdir -p $backup_dir
for script in $(ls $orig_dir); do
    # we're assuming there's only one proxy script for each proxied file
    proxy_script=$(ls ${main_dir}/*_${script}_proxy)
    # back up the "proxy script"
    cp $main_dir/$proxy_script $backup_dir
    # overwrite it with the original shell script
    cp $orig_dir/$script /main_dir
done