Skip to content

Commit

Permalink
contents: Merge /usr/sbin into /usr/bin
Browse files Browse the repository at this point in the history
It's easier than changing the path globally, and why not?  It's a
logical continuation of the /usr merge.
  • Loading branch information
cgwalters committed Apr 3, 2013
1 parent c98da23 commit 4aa52d2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions meta-gnomeos/classes/gnomeos-contents.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,21 @@ EOF
rmdir ${IMAGE_ROOTFS}/lib
ln -s usr/lib ${IMAGE_ROOTFS}/lib

# And now let's take the next logical step, merge /usr/sbin
# into /usr/bin. Rusty Russell will be overjoyed:
# http://rusty.ozlabs.org/?p=236

if test -d ${IMAGE_ROOTFS}/usr/sbin/.debug; then
mkdir -p ${IMAGE_ROOTFS}/usr/bin/.debug
mv ${IMAGE_ROOTFS}/usr/sbin/.debug/* ${IMAGE_ROOTFS}/usr/bin/.debug
rmdir ${IMAGE_ROOTFS}/usr/sbin/.debug
fi
for x in ${IMAGE_ROOTFS}/usr/sbin/*; do
mv ${x} ${IMAGE_ROOTFS}/usr/bin
done
rmdir ${IMAGE_ROOTFS}/usr/sbin
ln -s bin ${IMAGE_ROOTFS}/usr/sbin

# Remove all .la files
find ${IMAGE_ROOTFS}/usr/lib -name \*.la -delete

Expand Down

0 comments on commit 4aa52d2

Please sign in to comment.