Setup /pkg as a spot for pkg to operate. This is for testing purposes
only. You need to remount / rw and export TMPDIR=/pkg/tmp. pkg will then work. It's slow though: 15 minutes to pkg install git on an RPi 2 with a decently fast SD card. Since this is for testing, we set DEFAULT_ALWAYS_YES and ASSUME_ALWAYS_YES to YES.
This commit is contained in:
parent
3da40d4a6b
commit
d83ed77082
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=293398
@ -449,6 +449,28 @@ typical_embedded ( ) (
|
|||||||
)
|
)
|
||||||
customize_cmd typical_embedded
|
customize_cmd typical_embedded
|
||||||
|
|
||||||
|
fix_pkg ( ) (
|
||||||
|
chdir ${NANO_WORLDDIR}
|
||||||
|
mkdir -p pkg
|
||||||
|
mkdir -p pkg/db
|
||||||
|
mkdir -p pkg/cache
|
||||||
|
mkdir -p pkg/tmp # Needed for pkg bootstrap
|
||||||
|
mkdir -p usr/local/etc # Will get moved to local/etc
|
||||||
|
(
|
||||||
|
echo 'PKG_DBDIR = "/pkg/db"'
|
||||||
|
echo 'PKG_CACHEDIR = "/pkg/cache"'
|
||||||
|
echo 'DEFAULT_ALWAYS_YES = "yes"'
|
||||||
|
echo 'ASSUME_ALWAYS_YES = "yes"'
|
||||||
|
) >> usr/local/etc/pkg.conf
|
||||||
|
[ -z ${NANO_NOPRIV_BUILD} ] || (
|
||||||
|
echo "./pkg type=dir uname=root gname=wheel mode=0755"
|
||||||
|
echo "./pkg/cache type=dir uname=root gname=wheel mode=0755"
|
||||||
|
echo "./pkg/db type=dir uname=root gname=wheel mode=0755"
|
||||||
|
echo "./pkg/tmp type=dir uname=root gname=wheel mode=0755"
|
||||||
|
) >> ${NANO_METALOG}
|
||||||
|
)
|
||||||
|
customize_cmd fix_pkg
|
||||||
|
|
||||||
save_build ( ) (
|
save_build ( ) (
|
||||||
VERSION_FILE=${NANO_WORLDDIR}/etc/version
|
VERSION_FILE=${NANO_WORLDDIR}/etc/version
|
||||||
if [ "${SVNREVISION}" = "${REVISION}" ]; then
|
if [ "${SVNREVISION}" = "${REVISION}" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user