A rootless Android app that boots Alpine Linux: run containers (Podman/Docker/LXC) and GUI desktop apps.
feat(kernel): enable NFS, iSCSI target and binderfs in the guest kernel
ExTv7110a09bc479
diff --git a/Dockerfile b/Dockerfileindex 045a658..3eedba7 100644--- a/Dockerfile+++ b/Dockerfile@@ -117,6 +117,20 @@ RUN printf '%s\n' \'CONFIG_VSOCKETS=y' \'CONFIG_VSOCKETS_DIAG=y' \'CONFIG_VIRTIO_VSOCKETS=y' \+ 'CONFIG_NFSD=y' \+ 'CONFIG_NFSD_V4=y' \+ 'CONFIG_NFS_FS=y' \+ 'CONFIG_NFS_V4=y' \+ 'CONFIG_CONFIGFS_FS=y' \+ 'CONFIG_TARGET_CORE=y' \+ 'CONFIG_TCM_IBLOCK=y' \+ 'CONFIG_TCM_FILEIO=y' \+ 'CONFIG_ISCSI_TARGET=y' \+ 'CONFIG_ISCSI_TCP=y' \+ 'CONFIG_SCSI_ISCSI_ATTRS=y' \+ 'CONFIG_ANDROID_BINDER_IPC=y' \+ 'CONFIG_ANDROID_BINDERFS=y' \+ 'CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"' \> /tmp/forced_builtin.configRUN cd linux-${KERNEL_VERSION} \&& make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig \@@ -141,7 +155,10 @@ RUN cd linux-${KERNEL_VERSION} \RTW88_8821AU RTW88_8812AU RTW88_8814AU \FW_LOADER_COMPRESS FW_LOADER_COMPRESS_ZSTD UNICODE \USB_XHCI_HCD USB_XHCI_PCI USB_STORAGE USB_UAS \- SCSI BLK_DEV_SD VFAT_FS EXFAT_FS; do \+ SCSI BLK_DEV_SD VFAT_FS EXFAT_FS \+ NFSD NFSD_V4 NFS_FS NFS_V4 SUNRPC CONFIGFS_FS \+ TARGET_CORE TCM_IBLOCK TCM_FILEIO ISCSI_TARGET ISCSI_TCP \+ ANDROID_BINDER_IPC ANDROID_BINDERFS; do \grep -q "^CONFIG_${opt}=y\$" .config \|| { echo "FATAL: CONFIG_${opt} is not =y after merge" >&2; \grep "CONFIG_${opt}" .config >&2; exit 1; }; \diff --git a/build-rootfs/files/etc/init.d/podroid-bootstrap b/build-rootfs/files/etc/init.d/podroid-bootstrapindex fc27fac..e78fc37 100644--- a/build-rootfs/files/etc/init.d/podroid-bootstrap+++ b/build-rootfs/files/etc/init.d/podroid-bootstrap@@ -35,6 +35,11 @@ start() {-o noexec,nosuid,nodev,size=64mmountpoint -q /dev/mqueue || mount -t mqueue mqueue /dev/mqueue \-o noexec,nosuid,nodev+ # configfs backs the LIO iSCSI target (targetcli); without it apk-added+ # targetcli has nothing to write into.+ mkdir -p /sys/kernel/config 2>/dev/null+ mountpoint -q /sys/kernel/config || mount -t configfs -o nosuid,nodev,noexec \+ configfs /sys/kernel/config || true[ -c /dev/ptmx ] || mknod /dev/ptmx c 5 2 2>/dev/nullchmod 0666 /dev/ptmx /dev/pts/ptmx 2>/dev/null