|
|
@ -55,19 +55,20 @@ do_distrorfs_first_stage() { |
|
|
|
exit 1 |
|
|
|
fi |
|
|
|
|
|
|
|
mkdir -p $2/usr/local/bin |
|
|
|
cp -f board/phytium/common/ubuntu-package-installer $RFSDIR/usr/local/bin/ |
|
|
|
sudo chown 0:0 $RFSDIR |
|
|
|
sudo mkdir -p $2/usr/local/bin |
|
|
|
sudo cp -f board/phytium/common/ubuntu-package-installer $RFSDIR/usr/local/bin/ |
|
|
|
packages_list=board/phytium/common/$3 |
|
|
|
[ ! -f $packages_list ] && echo $packages_list not found! && exit 1 |
|
|
|
|
|
|
|
echo additional packages list: $packages_list |
|
|
|
if [ ! -d $RFSDIR/usr/aptpkg ]; then |
|
|
|
mkdir -p $RFSDIR/usr/aptpkg |
|
|
|
cp -f $packages_list $RFSDIR/usr/aptpkg |
|
|
|
sudo mkdir -p $RFSDIR/usr/aptpkg |
|
|
|
sudo cp -f $packages_list $RFSDIR/usr/aptpkg |
|
|
|
fi |
|
|
|
|
|
|
|
mkdir -p $RFSDIR/etc |
|
|
|
cp -f /etc/resolv.conf $RFSDIR/etc/resolv.conf |
|
|
|
sudo mkdir -p $RFSDIR/etc |
|
|
|
sudo cp -f /etc/resolv.conf $RFSDIR/etc/resolv.conf |
|
|
|
|
|
|
|
if [ ! -d $RFSDIR/debootstrap ]; then |
|
|
|
echo "testdeboot" |
|
|
|