Merge pull request #44 from ccrisan/feature-usr-overlay

Add r/w overlayfs support for /usr
This commit is contained in:
Calin Crisan 2019-12-13 22:22:24 +02:00 committed by GitHub
commit e96d87aaf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 7 additions and 3 deletions

View File

@ -19,6 +19,7 @@ rm -rf ${TARGET}/etc/ssl/man
rm -rf ${TARGET}/etc/ssl/misc
rm -rf ${TARGET}/etc/ssl/private
rm -rf ${TARGET}/etc/logrotate.d
rm -rf ${TARGET}/etc/fstab
rm -f ${TARGET}/etc/rc_maps.cfg
rm -f ${TARGET}/etc/udev/hwdb.d/20-pci-vendor-model.hwdb

View File

@ -1,4 +1,3 @@
# <file system> <mount pt> <type> <options> <dump> <pass>
/dev/mmcblk0p1 /boot vfat ro,defaults 0 0
/dev/mmcblk0p3 /data ext4 defaults,noatime 0 0

View File

@ -0,0 +1,2 @@
# <file system> <mount pt> <type> <options> <dump> <pass>
overlay /usr overlay lowerdir=/usr,upperdir=/data/usr,workdir=/data/.overlay-usr 0 0

View File

@ -4,4 +4,3 @@ devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs mode=0777 0 0
tmpfs /tmp tmpfs mode=1777 0 0
sysfs /sys sysfs defaults 0 0

View File

@ -6,6 +6,7 @@ mount_fs() {
msg_begin "Mounting filesystems"
/bin/mount -T /etc/fstab.disk -a &&
/bin/mount -T /etc/fstab.extra -a &&
if grep -qw overlay /proc/filesystems; then /bin/mount -T /data/etc/fstab.overlay -a; fi &&
if [[ -r /data/etc/fstab.user ]]; then /bin/mount -T /data/etc/fstab.user -a; fi
test $? == 0 && msg_done || msg_fail

View File

@ -27,6 +27,8 @@ if [ "$PS1" ]; then
export TERM=linux
fi;
export HISTFILE=/data/.bash_history
# custom local profile
test -f /data/etc/profile && source /data/etc/profile

View File

@ -10,7 +10,7 @@ BR2_ROOTFS_OVERLAY="board/common/overlay board/odroidc2/overlay"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/common/postscript.sh"
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/hardkernel/linux/archive/d76f4018945d768cfaed56d40a0e66b89bdb437a.tar.gz"
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/hardkernel/linux/archive/6b8c51b738ad6c03baed36bb44e56172959ca265.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="odroidc2"
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="meson64_odroidc2"