Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-image
Commits
6a95db10
Commit
6a95db10
authored
Oct 10, 2011
by
Vangelis Koukis
Browse files
Fix typos, remove reference to $windows_support
parent
55d2fc47
Changes
13
Hide whitespace changes
Inline
Side-by-side
snf-image-helper/common.sh
View file @
6a95db10
...
...
@@ -93,7 +93,7 @@ get_distro() {
}
cleanup
()
{
# if something fails here, it souldn't call cleanup again...
# if something fails here, it s
h
ouldn't call cleanup again...
trap
- EXIT
if
[
${#
CLEANUP
[*]
}
-gt
0
]
;
then
...
...
@@ -106,7 +106,7 @@ cleanup() {
# synchronous and may return while the partition is still busy. A
# premature attempt to delete partition mappings through kpartx on a
# device that hosts previously mounted ntfs partition may fail with
# a
n
`device-mapper: remove ioctl failed: Device or resource busy'
# a `device-mapper: remove ioctl failed: Device or resource busy'
# error. A sensible workaround for this is to wait for a while and
# then try again.
local
cmd
=
${
CLEANUP
[
$i
]
}
...
...
snf-image-helper/snf-passtohash.py
View file @
6a95db10
...
...
@@ -2,11 +2,11 @@
#
# Copyright (c) 2011 Greek Research and Technology Network
#
"""Generate a
H
ash from a given
P
assword
"""Generate a
h
ash from a given
p
assword
This program takes a
P
assword as an argument and
This program takes a
p
assword as an argument and
returns to standard output a hash followed by a newline.
To do this, it generates
internally
a random salt.
To do this, it generates a random salt
internally
.
"""
...
...
snf-image-helper/tasks/10ResizeUnmounted.in
View file @
6a95db10
...
...
@@ -4,7 +4,7 @@
# Provides: ResizeUnmounted
# RunBefore: MountImage
# Short-Description: Resize filesystem to use all the available space
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/30MountImage.in
View file @
6a95db10
...
...
@@ -4,7 +4,7 @@
# Provides: MountImage
# RunBefore: UmountImage
# Short-Description: Mount the partition that hosts the image
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/40AddDeleteUnattendScript.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore: UmountImage
# RunAfter: MountImage
# Short-Description: Script that removes Unattend.xml after setup has finished
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/40DeleteSSHKeys.in
View file @
6a95db10
...
...
@@ -4,7 +4,7 @@
# Provides: DeleteSSHKeys
# Requires: MountImage
# Short-Description: Remove ssh keys if present.
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/40InstallUnattend.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore: UmountImage
# RunAfter: MountImage
# Short-Description: Installs Unattend.xml for unattended windows setup
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/40ResizeMounted.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore: UmountImage
# RunAfter: MountImage
# Short-Description: Resize filesystem to use all the available space
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/40SELinuxAutorelabel.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore: UmountImage
# RunAfter: MountImage
# Short-Description: Force the system to relabel at next boot
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/50AssignHostname.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore: UmountImage
# RunAfter: InstallUnattend
# Short-Description: Assign the Hostname of Computer Name in the instance
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/50ChangePassword.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore: UmountImage
# RunAfter: InstallUnattend
# Short-Description: Changes Password for specified users
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-helper/tasks/80UmountImage.in
View file @
6a95db10
...
...
@@ -5,7 +5,7 @@
# RunBefore:
# RunAfter: MountImage
# Short-Description: Umount the partition that hosts the image
### END TAS
T
INFO
### END TAS
K
INFO
set
-e
.
"@commondir@/common.sh"
...
...
snf-image-host/defaults
View file @
6a95db10
...
...
@@ -59,6 +59,4 @@
# QEMU_IMG="qemu-img"
# INSTALL_MBR="install-mbr"
# TIMELIMIT="timelimit"
# if [ "$windows_support" = "yes" ] ; then
# PROGRESS_MONITOR="snf-progress-monitor"
# fi
# PROGRESS_MONITOR="snf-progress-monitor"
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