Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55273 - convertfs references incorrect path
Summary: convertfs references incorrect path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-26 13:32 UTC by Matthew Rickard
Modified: 2004-06-27 03:15 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Rickard 2004-06-26 13:32:58 UTC
convertfs-20020318.ebuild installs convertfs in /sbin but does not change the paths to the supporting utilities to match.  Therefore, if run from a path outside of /sbin it will fail.  The following patch fixes this, please apply.

--- convertfs.orig      2004-06-26 16:24:49.993481656 -0400
+++ convertfs   2004-06-26 16:27:30.073145848 -0400
@@ -192,7 +192,7 @@
 echo "== Creating clone of \`$from_fs_type' filesystem that's on \`$dev'. =="
 umount $dev 2>/dev/null
 mount -t $from_fs_type $dev $fs1root || error
-./devclone $dev $fsimage || error
+devclone $dev $fsimage || error
  
 echo "===== Creating destination \`$to_fs_type' filesystem. ====="
 umount $loopdev 2>/dev/null
@@ -216,13 +216,13 @@
 losetup -d $loopdev 2>/dev/null
  
 echo "=== Preparing info for block relocation ==="
-./prepindex $fsimage $fsindex $fssuper || error
+prepindex $fsimage $fsindex $fssuper || error
 umount $dev || error
 dd if=$fssuper of=$dev || exit
 sync
  
 echo "============ Relocating blocks ============"
-./devremap $dev || exit
+devremap $dev || exit
  
 echo "=== Filesystem conversion accomplished! ==="
 rm -rf $tmp
Comment 1 Tom Payne (RETIRED) gentoo-dev 2004-06-27 03:14:49 UTC
Thanks, perfect bug report! Now in CVS.
Comment 2 Tom Payne (RETIRED) gentoo-dev 2004-06-27 03:15:09 UTC
In CVS.