d0f5d25e4d
The config file for container from Halium repo is outdated, and will not load on latest version of LXC, here is the error when you start the container: postmarketos:~$ sudo lxc-start android lxc-start: android: confile.c: parse_line: 2447 Unknown configuration key "lxc.rootfs" lxc-start: android: parse.c: lxc_file_for_each_line_mmap: 142 Failed to parse config file "/var/lib/lxc/android/config" at line "lxc.rootfs = /var/lib/lxc/android/rootfs" Failed to load config for android lxc-start: android: tools/lxc_start.c: main: 264 Failed to create lxc_container postmarketos:~$ This pull request updates the config file, but also use the latest commit.
43 lines
1.7 KiB
Text
43 lines
1.7 KiB
Text
pkgname=lxc-android
|
|
pkgver=1.0_git20190315
|
|
pkgrel=0
|
|
arch="noarch"
|
|
url="https://github.com/Halium/lxc-android"
|
|
license="Apache"
|
|
makedepends=""
|
|
depends="lxc"
|
|
_commit="9551443e5ab11d0d21cb544f681bcb7603b870de"
|
|
install="$pkgname.post-install"
|
|
source="$pkgname-$_commit.tar.gz::https://github.com/Halium/$pkgname/archive/$_commit.tar.gz
|
|
pre-start.sh
|
|
lxcconfig.patch
|
|
lxc-android.init"
|
|
pkgdesc="Configuration for starting Halium build of Android inside LXC container"
|
|
options="!check"
|
|
|
|
builddir="$srcdir/$pkgname-$_commit"
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
mkdir -p "$pkgdir"
|
|
cp -r "$builddir"/* "$pkgdir"
|
|
|
|
# Remove unneeded udev rule override
|
|
rm -f "$pkgdir/etc/udev/rules.d/50-firmware.rules"
|
|
|
|
# Remove systemd units
|
|
rm -rf "$pkgdir/etc/systemd"
|
|
rm -rf "$pkgdir/lib/systemd"
|
|
|
|
# Install wrapper so pre-start.sh could be provided by device package
|
|
mv "$pkgdir/var/lib/lxc/android/pre-start.sh" "$pkgdir/var/lib/lxc/android/pre-start.default.sh"
|
|
install -m755 "$srcdir/pre-start.sh" "$pkgdir/var/lib/lxc/android/pre-start.sh"
|
|
|
|
# OpenRC services
|
|
install -Dm755 "${srcdir}/lxc-android.init" \
|
|
"${pkgdir}/etc/init.d/lxc-android"
|
|
}
|
|
sha512sums="348650f24464abb7a5d2b3e86e762efbdf770bf5f91d4fb12eb62290e3e29b94bcb91fac36cb0b550f4cb1ad9941b97ea7b7c44cccdf9af51d6b35233b6fe46d lxc-android-9551443e5ab11d0d21cb544f681bcb7603b870de.tar.gz
|
|
ef7081ea55a1acd5a6c5a973b4a7fc79bad4d5fdc721bc481e4ed92962a8ba9b70634e2a0a8f0afd28c14bd1fd4e1956914f68239c3dc34e41e167254252b1df pre-start.sh
|
|
7e8981ba9c779bf893dfddbe495dcaacfa43154748e21dd14fed2696d50b55807585d7168b79d73769d1381bb9974d7661479a303bacef883da0e0cf07dd0ad7 lxcconfig.patch
|
|
ad373e26fb4850f887ca0be76a4c5f19115e214dcbdc315cf24e41eabfd03eebf8f19085a49c97661861b16e8005355c7fd10e86acdb4593d43250e3fed998fb lxc-android.init"
|