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
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