|
@@ -3,16 +3,21 @@
|
|
|
# Check if a given custom skeleton or overlay complies to the merged
|
|
# Check if a given custom skeleton or overlay complies to the merged
|
|
|
# requirements:
|
|
# requirements:
|
|
|
#
|
|
#
|
|
|
-# - for merged-usr:
|
|
|
|
|
-# /bin missing, or a relative symlink to usr/bin
|
|
|
|
|
-# /lib missing, or a relative symlink to usr/lib
|
|
|
|
|
-# /sbin missing, or a relative symlink to usr/sbin
|
|
|
|
|
|
|
+# - for unmerged:
|
|
|
|
|
+# /bin missing*, or an existing directory; not a symlink
|
|
|
|
|
+# /lib missing*, or an existing directory; not a symlink
|
|
|
|
|
+# /sbin missing*, or an existing directory; not a symlink
|
|
|
# /usr/bin/ missing*, or an existing directory; not a symlink
|
|
# /usr/bin/ missing*, or an existing directory; not a symlink
|
|
|
# /usr/lib/ missing*, or an existing directory; not a symlink
|
|
# /usr/lib/ missing*, or an existing directory; not a symlink
|
|
|
# /usr/sbin/ missing*, or an existing directory; not a symlink
|
|
# /usr/sbin/ missing*, or an existing directory; not a symlink
|
|
|
#
|
|
#
|
|
|
# *: must be present for skeletons, can be missing for overlays
|
|
# *: must be present for skeletons, can be missing for overlays
|
|
|
#
|
|
#
|
|
|
|
|
+# - for merged-usr: all of the above, except:
|
|
|
|
|
+# /bin missing, or a relative symlink to usr/bin
|
|
|
|
|
+# /lib missing, or a relative symlink to usr/lib
|
|
|
|
|
+# /sbin missing, or a relative symlink to usr/sbin
|
|
|
|
|
+#
|
|
|
# - for merged-bin: all of the above, except:
|
|
# - for merged-bin: all of the above, except:
|
|
|
# /usr/sbin missing, or a relative symlink to bin (thus points
|
|
# /usr/sbin missing, or a relative symlink to bin (thus points
|
|
|
# to /usr/bin)
|
|
# to /usr/bin)
|
|
@@ -119,9 +124,9 @@ test_dir() {
|
|
|
is_success=true
|
|
is_success=true
|
|
|
for root; do
|
|
for root; do
|
|
|
first=true
|
|
first=true
|
|
|
|
|
+ test_dir "${type}" "${root}" "/" "usr/bin"
|
|
|
|
|
+ test_dir "${type}" "${root}" "/" "usr/lib"
|
|
|
if ${merged_usr}; then
|
|
if ${merged_usr}; then
|
|
|
- test_dir "${type}" "${root}" "/" "usr/bin"
|
|
|
|
|
- test_dir "${type}" "${root}" "/" "usr/lib"
|
|
|
|
|
test_merged "${type}" "${root}" "/" "bin" "usr/bin"
|
|
test_merged "${type}" "${root}" "/" "bin" "usr/bin"
|
|
|
test_merged "${type}" "${root}" "/" "lib" "usr/lib"
|
|
test_merged "${type}" "${root}" "/" "lib" "usr/lib"
|
|
|
test_merged "${type}" "${root}" "/" "sbin" "usr/sbin"
|
|
test_merged "${type}" "${root}" "/" "sbin" "usr/sbin"
|
|
@@ -130,6 +135,11 @@ for root; do
|
|
|
else
|
|
else
|
|
|
test_dir "${type}" "${root}" "/" "usr/sbin"
|
|
test_dir "${type}" "${root}" "/" "usr/sbin"
|
|
|
fi
|
|
fi
|
|
|
|
|
+ else
|
|
|
|
|
+ test_dir "${type}" "${root}" "/" "bin"
|
|
|
|
|
+ test_dir "${type}" "${root}" "/" "lib"
|
|
|
|
|
+ test_dir "${type}" "${root}" "/" "sbin"
|
|
|
|
|
+ test_dir "${type}" "${root}" "/" "usr/sbin"
|
|
|
fi
|
|
fi
|
|
|
done
|
|
done
|
|
|
|
|
|