forked from ungleich-public/cdist
backport __install_partition_msdos_apply from Steven
Signed-off-by: Nico Schottelius <nico@feder.schottelius.org>
This commit is contained in:
parent
d2694d83a9
commit
174fb3b7c8
1 changed files with 3 additions and 1 deletions
|
@ -18,6 +18,8 @@
|
||||||
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
# along with cdist. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#set -x
|
||||||
|
|
||||||
die() {
|
die() {
|
||||||
echo "[__install_partition_msdos_apply] $@" >&2
|
echo "[__install_partition_msdos_apply] $@" >&2
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -57,7 +59,7 @@ size_to_mb() {
|
||||||
|
|
||||||
get_objects() {
|
get_objects() {
|
||||||
objects_file=$(mktemp)
|
objects_file=$(mktemp)
|
||||||
for object in $(find "$__global/object/__install_partition_msdos" -path "*.cdist"); do
|
for object in $(find "$__global/object/__install_partition_msdos" -type d -name "$__cdist_object_marker"); do
|
||||||
object_device="$(cat "$object/parameter/device")"
|
object_device="$(cat "$object/parameter/device")"
|
||||||
object_minor="$(cat "$object/parameter/minor")"
|
object_minor="$(cat "$object/parameter/minor")"
|
||||||
echo "$object_device $object_minor $object" >> $objects_file
|
echo "$object_device $object_minor $object" >> $objects_file
|
||||||
|
|
Loading…
Reference in a new issue