Changeset 26207


Ignore:
Timestamp:
2011-03-17T20:09:39+01:00 (7 years ago)
Author:
nbd
Message:

base-files: add initial support for mounting overlayfs

Location:
trunk/package/base-files/files/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/package/base-files/files/lib/firstboot/10_reset_has_mini_fo

    r19331 r26207  
    44# Copyright (C) 2010 Vertical Communications 
    55 
    6 reset_check_for_mini_fo() { 
    7     if grep -q mini_fo /proc/filesystems; then 
     6reset_check_for_overlay() { 
     7    if grep -qE '(mini_fo|overlay)' /proc/filesystems; then 
    88        reset_has_fo=true 
    99    fi 
    1010} 
    1111 
    12 boot_hook_add jffs2reset reset_check_for_mini_fo 
     12boot_hook_add jffs2reset reset_check_for_overlay 
  • trunk/package/base-files/files/lib/firstboot/20_has_mini_fo

    r19331 r26207  
    44# Copyright (C) 2010 Vertical Communications 
    55 
    6 check_for_mini_fo() { 
    7     if ! grep -q mini_fo /proc/filesystems; then 
     6check_for_overlay() { 
     7    if ! grep -qE '(mini_fo|overlay)' /proc/filesystems; then 
    88        boot_run_hook no_fo 
    99        exit 1 
     
    1111} 
    1212 
    13 boot_hook_add switch2jffs check_for_mini_fo 
     13boot_hook_add switch2jffs check_for_overlay 
  • trunk/package/base-files/files/lib/functions/boot.sh

    r25635 r26207  
    126126        root=$1 
    127127        { 
    128                 if grep -q mini_fo /proc/filesystems; then 
     128                if grep -q overlay /proc/filesystems; then 
     129                        mount -t overlayfs -olowerdir=/,upperdir=$1 "overlayfs:$1" /mnt && root=/mnt 
     130                elif grep -q mini_fo /proc/filesystems; then 
    129131                        mount -t mini_fo -o base=/,sto=$1 "mini_fo:$1" /mnt 2>&- && root=/mnt 
    130132                else 
Note: See TracChangeset for help on using the changeset viewer.