Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
anbox
提交
b5ea0b4d
A
anbox
项目概览
openeuler
/
anbox
通知
24
Star
1
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
anbox
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
b5ea0b4d
编写于
7月 24, 2018
作者:
S
Simon Fels
提交者:
GitHub
7月 24, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #832 from morphis/generate-zip-instead-of-tar
Generate zip instead of a tarball
上级
fee8751d
e135277a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
17 addition
and
8 deletion
+17
-8
scripts/collect-bug-info.sh
scripts/collect-bug-info.sh
+6
-8
snap/.snapcraft/state
snap/.snapcraft/state
+4
-0
snap/snapcraft.yaml
snap/snapcraft.yaml
+7
-0
未找到文件。
scripts/collect-bug-info.sh
浏览文件 @
b5ea0b4d
...
...
@@ -7,9 +7,7 @@ if [ $(id -u) -ne 0 ] ; then
echo
" adding a few important file for bug diagnostics to the report."
echo
" If you want to have a look at the script before giving it root"
echo
" access, please have a look at
$0
."
echo
echo
"Please press any key to continue"
read
-r
action
exit
0
fi
echo
"This script will collect a few interesting things which developers will"
...
...
@@ -30,7 +28,7 @@ cp /var/snap/anbox/common/logs/console.log* $TMPDIR || true
$SNAP
/command-anbox.wrapper system-info
>
$TMPDIR
/system-info.log 2>&1
||
true
if
[
-e
/etc/systemd/system/snap.anbox.container-manager.service
]
;
then
sudo
journalctl
--no-pager
-u
snap.anbox.container-manager.service
>
$TMPDIR
/container-manager.log 2>&1
sudo
journalctl
--no-pager
-u
snap.anbox.container-manager.service
>
$TMPDIR
/container-manager.log 2>&1
||
true
fi
set
+x
...
...
@@ -48,12 +46,12 @@ fi
echo
"Generating archive with all log files in
$PWD
..."
CURDIR
=
$PWD
(
cd
$TMPDIR
;
tar
cJf
$CURDIR
/anbox-system-diagnostics-
$(
date
--rfc-3339
=
date
--utc
)
.tar.xz
*
)
(
cd
$TMPDIR
;
zip
-r
$CURDIR
/anbox-system-diagnostics-
$(
date
--rfc-3339
=
date
--utc
)
.zip
*
)
rm
-rf
$TMPDIR
echo
"DONE!"
echo
echo
"Now please take the
tarball generate in your current directory and
"
echo
"a
ttach it to your bug report. Please don't hesitate to have a look
"
echo
"
into the tarball
before you do so to verify you don't leak any"
echo
"Now please take the
ZIP archive generated in your current directory
"
echo
"a
nd attach it to your bug report. Please don't hesitate to have a
"
echo
"
look into the archive
before you do so to verify you don't leak any"
echo
"information you don't want!"
snap/.snapcraft/state
0 → 100644
浏览文件 @
b5ea0b4d
!GlobalState
assets:
build-packages: []
build-snaps: []
snap/snapcraft.yaml
浏览文件 @
b5ea0b4d
...
...
@@ -144,6 +144,13 @@ parts:
stage-packages
:
-
apparmor
zip
:
plugin
:
nil
stage-packages
:
-
zip
prime
:
-
usr/bin/zip
lxc
:
source
:
https://github.com/lxc/lxc
source-type
:
git
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录