slitaz-boot-scripts rev 427

init: keep tmpfs rw
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Mar 30 09:44:21 2016 +0200 (2016-03-30)
parents 23d89ddc30ad
children d477099ba12c
files init
line diff
     1.1 --- a/init	Wed Feb 24 22:57:18 2016 +0200
     1.2 +++ b/init	Wed Mar 30 09:44:21 2016 +0200
     1.3 @@ -58,7 +58,8 @@
     1.4  
     1.5  quit() {
     1.6  	[ -d /mnt$4/etc ] || return
     1.7 -	[ -n "$4" ] || busybox mount /mnt -o remount,ro
     1.8 +	[ -n "$4" ] || grep -q 'tmpfs /mnt tmpfs' /proc/mounts || 
     1.9 +		busybox mount /mnt -o remount,ro
    1.10  	busybox mount --move /run /mnt/${1:-run}
    1.11  	cat > /run/init <<EOT
    1.12  $2