You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@yetus.apache.org by aw...@apache.org on 2021/11/16 02:17:27 UTC

[yetus] branch YETUS-1138 updated: add a postcheckout

This is an automated email from the ASF dual-hosted git repository.

aw pushed a commit to branch YETUS-1138
in repository https://gitbox.apache.org/repos/asf/yetus.git


The following commit(s) were added to refs/heads/YETUS-1138 by this push:
     new edb1bb0  add a postcheckout
edb1bb0 is described below

commit edb1bb042d983a686519562f876a12a87ea2abf5
Author: Allen Wittenauer <aw...@apache.org>
AuthorDate: Mon Nov 15 18:17:19 2021 -0800

    add a postcheckout
---
 hooks/post_checkout | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/hooks/post_checkout b/hooks/post_checkout
new file mode 100755
index 0000000..5db9e2a
--- /dev/null
+++ b/hooks/post_checkout
@@ -0,0 +1,24 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+if [[ ! -f /proc/sys/fs/binfmt_misc/qemu-aarch64 ]]; then
+  apt-get update && apt-get install -y qemu-user-static
+  /etc/init.d/binfmt-support force-reload
+fi
+ls /proc/sys/fs/binfmt_misc
+cat /proc/sys/fs/binfmt_misc/qemu-aarch64
+
+