Skip to content
Snippets Groups Projects
Select Git revision
  • 9cfefd27d2d6df4a27950a2cf5816705b0f05916
  • master default
  • lip-21w
3 results

01unionstack.patch

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    01unionstack.patch 1.07 KiB
    --- a/scripts/casper.org	2013-04-03 10:09:07.000000000 +0200
    +++ b/scripts/casper	2013-04-03 00:51:26.000000000 +0200
    @@ -43,6 +43,8 @@
                     export PERSISTENT_PATH="${x#persistent-path=}" ;;
                 union=*)
                     export UNIONFS="${x#union=}";;
    +            unionstack=*)
    +                export UNIONSTACK="${x#unionstack=}";;
                 ip=*)
                     STATICIP=${x#ip=}
                     if [ "${STATICIP}" = "" ]; then
    @@ -407,6 +409,12 @@
         for image_type in "ext2" "squashfs" "dir" ; do
             for image in "${image_directory}"/*."${image_type}"; do
                 imagename=$(basename "${image}")
    +            if [ -n "$UNIONSTACK" ]; then
    +                if [ "$(echo $UNIONSTACK | sed "s/$imagename//";)" == "$UNIONSTACK" ]; then
    +                    log_warning_msg "Filesystem image $imagename not in UNIONSTACK. Ignored."
    +                    continue
    +                fi
    +            fi
                 if [ -d "${image}" ]; then
                     # it is a plain directory: do nothing
                     rofsstring="${image}=${roopt}:${rofsstring}"