Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
aports
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Panek
aports
Commits
2d0758cf
Commit
2d0758cf
authored
16 years ago
by
Natanael Copa
Browse files
Options
Downloads
Patches
Plain Diff
mkiso: check timestamps on initramfs and modloop
this avoids rebuilding those unless its needed
parent
03f98544
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mkiso
+19
-4
19 additions, 4 deletions
mkiso
with
19 additions
and
4 deletions
mkiso
+
19
−
4
View file @
2d0758cf
...
...
@@ -4,6 +4,9 @@ tmp=$PWD/tmp
aports
=
$PWD
/../aports
target
=
alpine-test.iso
initramfs
=
test.gz
modloop
=
modloop.cmg
unapk
()
{
local
dest
=
"
$1
"
shift
...
...
@@ -14,6 +17,11 @@ unapk() {
rm
-f
"
$dest
/.PKGINFO"
}
link_or_copy
()
{
ln
-f
"
$1
"
"
$2
"
2>/dev/null
||
cp
"
$1
"
"
$2
"
}
rm
-r
$tmp
mkdir
-p
$tmp
/apks
$tmp
/isolinux
cp
/usr/share/syslinux/isolinux.
*
$tmp
/isolinux
...
...
@@ -32,13 +40,20 @@ EOF
unapk
$tmp
$aports
/core/linux-grsec/linux-grsec-[0-9]
*
.apk
sh mkinitram
sh mkmodloop
# only build initram if its missing or script is newer than target
if
[
!
-f
"
$initramfs
"
]
||
[
mkinitram
-nt
"
$initramfs
"
]
;
then
sh mkinitram
fi
if
[
!
-f
"
$modloop
"
]
||
[
mkmodloop
-nt
"
$modloop
"
]
;
then
sh mkmodloop
fi
mkdir
-p
$tmp
/boot/
cp
test.gz
$tmp
/boot/
cp
modloop.cmg
$tmp
/boot/
link_or_copy
test.gz
$tmp
/boot/
link_or_copy
modloop.cmg
$tmp
/boot/
echo
"==> Creating ISO image"
genisoimage
-o
$target
-l
-J
-R
\
-b
isolinux/isolinux.bin
\
-c
isolinux/boot.cat
\
...
...
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