Don't make /CD on usb stick
Don't demand /CD at setup time
This commit is contained in:
parent
242606eda9
commit
d9d8b94602
@ -93,11 +93,6 @@ warn()
|
|||||||
while getopts '' opt; do usage; done
|
while getopts '' opt; do usage; done
|
||||||
shift `expr $OPTIND - 1`
|
shift `expr $OPTIND - 1`
|
||||||
|
|
||||||
if [ ! -f /CD ]
|
|
||||||
then echo "Please run setup from the CD, not from a live system."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$USER" != root ]
|
if [ "$USER" != root ]
|
||||||
then echo "Please run setup as root."
|
then echo "Please run setup as root."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -64,7 +64,6 @@ usb_root_changes()
|
|||||||
$RELEASEDIR/usr/mdec/bootblock boot/boot
|
$RELEASEDIR/usr/mdec/bootblock boot/boot
|
||||||
echo \
|
echo \
|
||||||
'bios_wini=yes
|
'bios_wini=yes
|
||||||
disable=inet
|
|
||||||
bios_remap_first=1
|
bios_remap_first=1
|
||||||
rootdev=c0d7p0s0
|
rootdev=c0d7p0s0
|
||||||
save' | $RELEASEDIR/usr/bin/edparams $TMPDISK3
|
save' | $RELEASEDIR/usr/bin/edparams $TMPDISK3
|
||||||
@ -304,8 +303,10 @@ find $RELEASEDIR/usr/src/commands -name build | xargs chmod 755
|
|||||||
# Bug tracking system not for on cd
|
# Bug tracking system not for on cd
|
||||||
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
rm -rf $RELEASEDIR/usr/src/doc/bugs
|
||||||
|
|
||||||
# Make sure the CD knows it's a CD
|
# Make sure the CD knows it's a CD, unless it's not
|
||||||
date >$RELEASEDIR/CD
|
if [ "$USB" -eq 0 ]
|
||||||
|
then date >$RELEASEDIR/CD
|
||||||
|
fi
|
||||||
echo " * Chroot build"
|
echo " * Chroot build"
|
||||||
chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1
|
chroot $RELEASEDIR "/bin/sh -x /usr/src/tools/chrootmake.sh" || exit 1
|
||||||
echo " * Chroot build done"
|
echo " * Chroot build done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user