Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE3
/
storagedriver
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
75fd709e
authored
Jul 25, 2022
by
Karsa Zoltán István
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disk path
parent
07471700
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
6 deletions
+11
-6
disk.py
+11
-6
No files found.
disk.py
View file @
75fd709e
...
...
@@ -194,18 +194,23 @@ class Disk(object):
return
False
def
create_ci_disk
(
self
,
meta_data
,
user_data
):
disk_path
=
self
.
get_path
()
logger
.
info
(
"Create CI iso to
%
s"
,
disk_path
)
with
open
(
self
.
dir
+
'/meta-data'
,
'w'
)
as
f
:
tmp_dir
=
self
.
dir
+
'/dir'
+
self
.
name
os
.
mkdir
(
tmp_dir
)
meta_path
=
tmp_dir
+
'/meta-data'
user_path
=
tmp_dir
+
'/user-data'
with
open
(
meta_path
,
'w'
)
as
f
:
f
.
write
(
meta_data
)
with
open
(
self
.
dir
+
'/user-data'
,
'w'
)
as
f
:
with
open
(
user_path
,
'w'
)
as
f
:
f
.
write
(
user_data
)
cmdline
=
[
'genisoimage'
,
'-output'
,
self
.
get_path
(),
'-V'
,
'cidata'
,
'-r'
,
'-J'
,
self
.
dir
+
'/meta-data'
,
self
.
dir
+
'/user-data'
]
meta_path
,
user_path
]
subprocess
.
check_output
(
cmdline
)
os
.
remove
(
meta_path
)
os
.
remove
(
user_path
)
os
.
removedirs
(
tmp_dir
)
self
.
size
=
Disk
.
get
(
self
.
dir
,
self
.
name
)
.
size
...
...
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