Store updates on userdata partition
since /cache is too small
This commit is contained in:
		
							
								
								
									
										26
									
								
								overlay/system/etc/init/mount-android.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										26
									
								
								overlay/system/etc/init/mount-android.conf
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,26 @@
 | 
			
		||||
# Mount device partitions
 | 
			
		||||
 | 
			
		||||
description "Mount device partitions"
 | 
			
		||||
 | 
			
		||||
start on (startup
 | 
			
		||||
    and started udev)
 | 
			
		||||
 | 
			
		||||
task
 | 
			
		||||
 | 
			
		||||
script
 | 
			
		||||
    mkdir -p /dev/cpuset
 | 
			
		||||
    mount none /dev/cpuset -t cpuset -o nodev,noexec,nosuid
 | 
			
		||||
 | 
			
		||||
    bash /usr/sbin/mount-android.sh
 | 
			
		||||
 | 
			
		||||
    # Store updates on userdata partition since cache is too small
 | 
			
		||||
    umount /android/cache || true
 | 
			
		||||
    mkdir -p /userdata/cache
 | 
			
		||||
    mount -o bind /userdata/cache /android/cache
 | 
			
		||||
    mkdir -p /android/cache/recovery
 | 
			
		||||
 | 
			
		||||
    if [ -d /android/metadata ]; then
 | 
			
		||||
        mount -o bind /android/metadata /var/lib/lxc/android/rootfs/metadata
 | 
			
		||||
    fi
 | 
			
		||||
end script
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user