Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
c4ac34df
Commit
c4ac34df
authored
Mar 28, 2018
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pass EXTRACT_UNSAFE_SYMLINKS variable
parent
54853732
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
elphel-scp.bbclass
classes/elphel-scp.bbclass
+2
-2
No files found.
classes/elphel-scp.bbclass
View file @
c4ac34df
...
@@ -96,7 +96,7 @@ python do_target_scp () {
...
@@ -96,7 +96,7 @@ python do_target_scp () {
#unpack archive to mountpoint
#unpack archive to mountpoint
print("Unpack archive then delete")
print("Unpack archive then delete")
command_over_ssh(d,"'tar -C "+mountpoint+" -xzpf /image.tar.gz; rm -f /image.tar.gz; sync'")
command_over_ssh(d,"'
EXTRACT_UNSAFE_SYMLINKS=1
tar -C "+mountpoint+" -xzpf /image.tar.gz; rm -f /image.tar.gz; sync'")
else:
else:
raise Exception("\033[1;37mMMC rootfs partition "+MMC2+" not found.\033[0m")
raise Exception("\033[1;37mMMC rootfs partition "+MMC2+" not found.\033[0m")
...
@@ -110,7 +110,7 @@ python do_target_scp () {
...
@@ -110,7 +110,7 @@ python do_target_scp () {
subprocess.run(cmd,stderr=subprocess.STDOUT,shell=True)
subprocess.run(cmd,stderr=subprocess.STDOUT,shell=True)
#unpack archive to /
#unpack archive to /
command_over_ssh(d,"'tar -C / -xzpf /image.tar.gz; rm -f /image.tar.gz; sync'")
command_over_ssh(d,"'
EXTRACT_UNSAFE_SYMLINKS=1
tar -C / -xzpf /image.tar.gz; rm -f /image.tar.gz; sync'")
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment