Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2
trustedgrub
grub-install-fix-UUID_LABEL
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File grub-install-fix-UUID_LABEL of Package trustedgrub
--- grub-0.97/util/grub-install.in.orig 2007-03-16 17:29:21.000000000 +0100 +++ grub-0.97/util/grub-install.in 2007-03-16 17:43:14.000000000 +0100 @@ -216,7 +216,16 @@ resolve_symlink () { find_device () { # For now, this uses the program `df' to get the device name, but is # this really portable? - tmp_fname=`df $1/ | sed -n 's%.*\(/dev/[^ ]*\).*%\1%p'` + tmp_fname=`df $1/ | awk '/\/dev\/|LABEL=|UUID=/{ print $1 }'` + + if grep -q LABEL= <<<$tmp_fname; then + label=`sed -e s/.*=// <<<$tmp_fname` + tmp_fname=`readlink -f /dev/disk/by-label/$label` + fi + if grep -q UUID= <<<$tmp_fname; then + uuid=`sed -e s/.*=// <<<$tmp_fname` + tmp_fname=`readlink -f /dev/disk/by-uuid/$uuid` + fi if test -z "$tmp_fname"; then echo "Could not find device for $1" 2>&1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor