Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
snf-image-creator
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
itminedu
snf-image-creator
Commits
3d083be5
Commit
3d083be5
authored
13 years ago
by
Nikos Skalkotos
Browse files
Options
Downloads
Patches
Plain Diff
Fix a bug in linux sysprep_* methods
The parameter order when calling guestfs.write was incorrect.
parent
0db22eac
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
image_creator/os_type/linux.py
+2
-2
2 additions, 2 deletions
image_creator/os_type/linux.py
with
2 additions
and
2 deletions
image_creator/os_type/linux.py
+
2
−
2
View file @
3d083be5
...
...
@@ -34,9 +34,9 @@ class Linux(Unix):
'
\"
Power button pressed
\"
'
if
self
.
g
.
is_file
(
'
/etc/acpi/powerbtn.sh
'
):
self
.
g
.
write
(
action
,
'
/etc/acpi/powerbtn.sh
'
)
self
.
g
.
write
(
'
/etc/acpi/powerbtn.sh
'
,
action
)
elif
self
.
g
.
is_file
(
'
/etc/acpi/actions/power.sh
'
):
self
.
g
.
write
(
actions
,
'
/etc/acpi/actions/power.sh
'
)
self
.
g
.
write
(
'
/etc/acpi/actions/power.sh
'
,
action
)
else
:
print
"
Warning: No acpid action file found
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment