From b23436242b04e04494c85accfbd575f5741bfb16 Mon Sep 17 00:00:00 2001 From: aliriza Date: Tue, 22 Nov 2022 16:43:24 +0000 Subject: [PATCH] ctx fix --- Makefile | 0 doc/ympbuild.rst | 0 scripts/chmount | 4 ++-- src/ccode/fetcher.c | 0 src/ccode/logger.c | 0 src/ccode/process.c | 0 src/ccode/signal.c | 0 src/ccode/string.c | 0 src/operations/misc/help.vala | 0 src/operations/misc/httpd.vala | 0 src/operations/misc/kill.vala | 0 src/operations/misc/title.vala | 0 src/operations/package-manager/bootstrap.vala | 0 src/operations/package-manager/info.vala | 0 src/operations/package-manager/repository.vala | 0 src/operations/package-manager/template.vala | 0 src/operations/utility/sysconf.vala | 0 src/ymp-work-schema.svg | 0 tool/mkctx.sh | 1 + 19 files changed, 3 insertions(+), 2 deletions(-) mode change 100644 => 100755 Makefile mode change 100644 => 100755 doc/ympbuild.rst mode change 100644 => 100755 scripts/chmount mode change 100644 => 100755 src/ccode/fetcher.c mode change 100644 => 100755 src/ccode/logger.c mode change 100644 => 100755 src/ccode/process.c mode change 100644 => 100755 src/ccode/signal.c mode change 100644 => 100755 src/ccode/string.c mode change 100644 => 100755 src/operations/misc/help.vala mode change 100644 => 100755 src/operations/misc/httpd.vala mode change 100644 => 100755 src/operations/misc/kill.vala mode change 100644 => 100755 src/operations/misc/title.vala mode change 100644 => 100755 src/operations/package-manager/bootstrap.vala mode change 100644 => 100755 src/operations/package-manager/info.vala mode change 100644 => 100755 src/operations/package-manager/repository.vala mode change 100644 => 100755 src/operations/package-manager/template.vala mode change 100644 => 100755 src/operations/utility/sysconf.vala mode change 100644 => 100755 src/ymp-work-schema.svg diff --git a/Makefile b/Makefile old mode 100644 new mode 100755 diff --git a/doc/ympbuild.rst b/doc/ympbuild.rst old mode 100644 new mode 100755 diff --git a/scripts/chmount b/scripts/chmount old mode 100644 new mode 100755 index 553b799..02c1483 --- a/scripts/chmount +++ b/scripts/chmount @@ -1,11 +1,11 @@ -#!/bin/bash +#!/bin/sh for i in /dev /sys /proc /run do mkdir -p $1/$i 2>/dev/null || true umount -R -lf $1/$i &>/dev/null || true mount --bind $i $1/$i done -chroot $1 +chroot $* q=$? for i in /dev /sys /proc /run ; do while umount -lf -R $1/$i 2>/dev/null ; do diff --git a/src/ccode/fetcher.c b/src/ccode/fetcher.c old mode 100644 new mode 100755 diff --git a/src/ccode/logger.c b/src/ccode/logger.c old mode 100644 new mode 100755 diff --git a/src/ccode/process.c b/src/ccode/process.c old mode 100644 new mode 100755 diff --git a/src/ccode/signal.c b/src/ccode/signal.c old mode 100644 new mode 100755 diff --git a/src/ccode/string.c b/src/ccode/string.c old mode 100644 new mode 100755 diff --git a/src/operations/misc/help.vala b/src/operations/misc/help.vala old mode 100644 new mode 100755 diff --git a/src/operations/misc/httpd.vala b/src/operations/misc/httpd.vala old mode 100644 new mode 100755 diff --git a/src/operations/misc/kill.vala b/src/operations/misc/kill.vala old mode 100644 new mode 100755 diff --git a/src/operations/misc/title.vala b/src/operations/misc/title.vala old mode 100644 new mode 100755 diff --git a/src/operations/package-manager/bootstrap.vala b/src/operations/package-manager/bootstrap.vala old mode 100644 new mode 100755 diff --git a/src/operations/package-manager/info.vala b/src/operations/package-manager/info.vala old mode 100644 new mode 100755 diff --git a/src/operations/package-manager/repository.vala b/src/operations/package-manager/repository.vala old mode 100644 new mode 100755 diff --git a/src/operations/package-manager/template.vala b/src/operations/package-manager/template.vala old mode 100644 new mode 100755 diff --git a/src/operations/utility/sysconf.vala b/src/operations/utility/sysconf.vala old mode 100644 new mode 100755 diff --git a/src/ymp-work-schema.svg b/src/ymp-work-schema.svg old mode 100644 new mode 100755 diff --git a/tool/mkctx.sh b/tool/mkctx.sh index 357a2f8..7d77e6f 100755 --- a/tool/mkctx.sh +++ b/tool/mkctx.sh @@ -1,6 +1,7 @@ #!/bin/bash > ctx.vala ### ctx_init variable build +chmod +x -R ./* for i in $@ ; do name=$(echo $i | cut -f1 -d=) value=$(echo $i | cut -f2 -d=)