calls make_image.sh to build the base install
This commit is contained in:
parent
a41f9c7e7d
commit
407ee7ee5e
@ -6,17 +6,19 @@ if [ ! "$#" -eq "1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
PROGDIR=`dirname $0`
|
||||||
|
|
||||||
# Source params
|
# Source params
|
||||||
source ./stackrc
|
source ./stackrc
|
||||||
|
|
||||||
# clean install of natty
|
# clean install of natty
|
||||||
if [ ! -d natty-base ]; then
|
if [ ! -d natty-base ]; then
|
||||||
debootstrap natty natty-base
|
$PROGDIR/make_image.sh -C natty natty-base
|
||||||
# copy kernel modules...
|
# copy kernel modules...
|
||||||
# NOTE(ja): is there a better way to do this?
|
# NOTE(ja): is there a better way to do this?
|
||||||
cp -pr /lib/modules/`uname -r` natty-base/lib/modules
|
cp -pr /lib/modules/`uname -r` natty-base/lib/modules
|
||||||
cp files/sources.list natty-base/etc/apt/sources.list
|
# a simple password - pass
|
||||||
chroot natty-base apt-get update
|
echo root:pass | chroot natty-base chpasswd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# prime natty with as many apt/pips as we can
|
# prime natty with as many apt/pips as we can
|
||||||
|
Loading…
Reference in New Issue
Block a user