Some permissions issues with installs fixed

This commit is contained in:
Ben Gras 2005-05-04 13:47:05 +00:00
parent 0ca9e2958f
commit d8c7bda04d
2 changed files with 4 additions and 3 deletions

View file

@ -98,8 +98,8 @@ hdboot)
esac
# Install the new image.
echo "cp image $root:/boot/image/$target"
cp -p image $rootdir/boot/image/$target || exit
echo "install image $root:/boot/image/$target"
install -o root -m 600 image $rootdir/boot/image/$target || exit
# Save the revision number.
test "$revision" != "$oldrev" && echo $revision >revision

View file

@ -45,7 +45,8 @@ mkdir -p $RELEASEDIR
mkfs -b 1440 -B 1024 $RAM || exit
echo " * mounting $RAM as $RELEASEDIR"
mount $RAM $RELEASEDIR || exit
mkdir $RELEASEDIR/usr $RELEASEDIR/tmp
mkdir -m 755 $RELEASEDIR/usr
mkdir -m 1777 $RELEASEDIR/tmp
mount $TMPTMPDISK $RELEASEDIR/tmp || exit 1
mkfs -B 1024 $TMPDISK