Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lipck
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
osak
lipck
Commits
58e94af4
Commit
58e94af4
authored
10 years ago
by
Christopher Spinrath
Browse files
Options
Downloads
Patches
Plain Diff
remaster_iso von uck auf lipck portiert
parent
c8c36c5e
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
legacy_scripts/customize_iso
+0
-37
0 additions, 37 deletions
legacy_scripts/customize_iso
scripts/remaster_iso.sh
+20
-0
20 additions, 0 deletions
scripts/remaster_iso.sh
with
20 additions
and
37 deletions
legacy_scripts/customize_iso
deleted
100755 → 0
+
0
−
37
View file @
c8c36c5e
#!/bin/bash
SCRIPT_DIR
=
`
dirname
"
$0
"
`
REMASTER_HOME
=
${
1
:-
~/tmp
}
ISO_REMASTER_DIR
=
"
$REMASTER_HOME
/remaster-iso"
REMASTER_DIR
=
"
$REMASTER_HOME
/remaster-root"
ISO_DESCRIPTION_PREFIX_FILE
=
"
$SCRIPT_DIR
/iso_description_prefix"
if
[
-e
"
$SCRIPT_DIR
/customize_common"
]
;
then
source
"
$SCRIPT_DIR
/customize_common"
fi
function
create_md5sums
()
{
pushd
"
$REMASTER_DIR
"
find
.
-type
f
-print0
|
sort
-z
| xargs
-0
md5sum
>
"
$REMASTER_HOME
/rootfs.md5"
popd
}
function
write_iso_description
()
{
ISO_ARCH
=
"32Bit"
if
[
"
$(
uname
-m
)
"
==
"x86_64"
]
;
then
ISO_ARCH
=
"64Bit"
fi
ISO_PREFIX
=
"LIP ISO"
if
[
-e
"
$ISO_DESCRIPTION_PREFIX_FILE
"
]
;
then
ISO_PREFIX
=
"
$(
cat
$ISO_DESCRIPTION_PREFIX_FILE
)
"
fi
echo
"
$ISO_PREFIX
$ISO_ARCH
"
>
"
$SCRIPT_DIR
/iso_description"
}
#create_md5sums
write_iso_description
patch_all
"
$SCRIPT_DIR
/iso-patches/"
"
$ISO_REMASTER_DIR
/"
This diff is collapsed.
Click to expand it.
scripts/remaster_iso.sh
0 → 100755
+
20
−
0
View file @
58e94af4
#!/bin/bash
SCRIPT_DIR
=
"
$1
"
ISO_REMASTER_DIR
=
"
$2
"
if
[
!
-d
"
$SCRIPT_DIR
"
]
;
then
echo
"Expected lipck base path as first argument!"
exit
1
fi
if
[
!
-d
"
$ISO_REMASTER_DIR
"
]
;
then
echo
"Expected target iso or target image root directory as second argument!"
exit
2
fi
if
[
-e
"
$SCRIPT_DIR
/scripts/common_functions.sh"
]
;
then
source
"
$SCRIPT_DIR
/scripts/common_functions.sh"
fi
patch_all
"
$SCRIPT_DIR
/patches/iso/"
"
$ISO_REMASTER_DIR
"
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