summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2008-07-25 09:47:47 -1000
committerDavid Cantrell <dcantrell@redhat.com>2008-07-25 09:47:47 -1000
commitf6a73a009c982a51b5f1a0eecdfbeb86e76b9a90 (patch)
tree7e10cbd52d10999a226aca9b7c918ad1da7e6889
parentd14ab471f857a2acbfffae1cec9085e7beed78c5 (diff)
downloadanaconda-f6a73a009c982a51b5f1a0eecdfbeb86e76b9a90.tar.gz
anaconda-f6a73a009c982a51b5f1a0eecdfbeb86e76b9a90.tar.xz
anaconda-f6a73a009c982a51b5f1a0eecdfbeb86e76b9a90.zip
Clean up some mistakes in the minstg2 removal.
Fix up some errors in mk-images and upd-instroot that are preventing images from building correctly.
-rwxr-xr-xscripts/mk-images1
-rwxr-xr-xscripts/upd-instroot6
2 files changed, 4 insertions, 3 deletions
diff --git a/scripts/mk-images b/scripts/mk-images
index f22763d0a..235f9a1c5 100755
--- a/scripts/mk-images
+++ b/scripts/mk-images
@@ -650,6 +650,7 @@ makeinstimage () {
mkdir -p $mntpoint $tmp
mkdir -p $tmp
+ (cd $IMGPATH; find . | cpio --quiet -p $tmp)
makeproductfile $tmp
if [ -z "$type" -o "$type" = "cramfs" ]; then
diff --git a/scripts/upd-instroot b/scripts/upd-instroot
index 20a184fb8..675297da2 100755
--- a/scripts/upd-instroot
+++ b/scripts/upd-instroot
@@ -932,7 +932,7 @@ sed -i "s,^MANPATH_MAP[ \t]*[a-zA-Z0-9/]*[ \t]*,&/mnt/sysimage," $DEST/etc/man.c
rm -f $KEEPFILE $KEEPFILERESCUE
-echo "Scrubbing trees..." "$DEST"
+echo "Scrubbing tree..." "$DEST"
mkdir -p $DEST/lib
mkdir -p $DEST/firmware
ln -snf /modules $DEST/lib/modules
@@ -974,11 +974,11 @@ for brokenlink in $(find $DEST/usr/{bin,sbin} -follow -lname '*') ; do
target="$(readlink $brokenlink)"
for pathbit in bin sbin; do
# if it starts with "../../sbin/", remove that
- newtarget="${target##../../$DESTathbit/}"
+ newtarget="${target##../../$pathbit/}"
# if we removed something, replace it with the proper path
if [ "$newtarget" != "$target" ]; then
# make it ../sbin/ instead
- ln -sf "../$DESTathbit/$newtarget" "$brokenlink"
+ ln -sf "../$pathbit/$newtarget" "$brokenlink"
fi
done
done