Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
aports
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
814
Issues
814
List
Boards
Labels
Milestones
Merge Requests
53
Merge Requests
53
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpine
aports
Commits
b6c52245
Commit
b6c52245
authored
Dec 16, 2009
by
Natanael Copa
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main/mkinitfs: cleanup links and initramfs on uninstall
parent
ce00a965
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
APKBUILD
main/mkinitfs/APKBUILD
+1
-1
mkinitfs.trigger
main/mkinitfs/mkinitfs.trigger
+13
-4
No files found.
main/mkinitfs/APKBUILD
View file @
b6c52245
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname
=
mkinitfs
pkgver
=
2.0_rc6
pkgrel
=
1
pkgrel
=
2
pkgdesc
=
"Tool to generate initramfs images for Alpine"
url
=
http://git.alpinelinux.org/cgit/mkinitfs
depends
=
"busybox apk-tools>=2.0_rc7"
...
...
main/mkinitfs/mkinitfs.trigger
View file @
b6c52245
...
...
@@ -3,16 +3,19 @@
for
i
in
"
$@
"
;
do
# get last element in path
flavor
=
${
i
##*/
}
if
!
[
-f
"
$i
"
/kernel.release
]
;
then
# kernel was uninstalled
rm
-f
$(
readlink
-f
/boot/initramfs-
$flavor
)
\
/boot/initramfs-
$flavor
/boot/vmlinuz-
$flavor
\
/boot/
$flavor
/boot/
$flavor
.gz /
$flavor
/
$flavor
.gz
continue
fi
abi_release
=
$(
cat
"
$i
"
/kernel.release
)
initfs
=
initramfs-
$abi_release
mkinitfs
-o
/boot/
$initfs
$abi_release
ln
-sf
$initfs
/boot/initramfs-
$flavor
ln
-sf
vmlinuz-
$abi_release
/boot/vmlinuz-
$flavor
# extlinux will use path relative partition, so if /boot is on a
# separate partition we want /boot/<kernel> resolve to /<kernel>
[
-e
/boot/boot
]
||
ln
-sf
/ /boot/boot
#this is for compat. to be removed eventually...
ln
-sf
vmlinuz-
$flavor
/boot/
$flavor
ln
-sf
initramfs-
$flavor
/boot/
$flavor
.gz
...
...
@@ -29,3 +32,9 @@ for i in "$@"; do
fi
done
# extlinux will use path relative partition, so if /boot is on a
# separate partition we want /boot/<kernel> resolve to /<kernel>
if
!
[
-e
/boot/boot
]
;
then
ln
-sf
/ /boot/boot
fi
Natanael Copa
@ncopa
mentioned in commit
35c2ef29
·
Jul 12, 2019
mentioned in commit
35c2ef29
mentioned in commit 35c2ef29bae7dcf4131c56d9334e1f5ca2e5f9e5
Toggle commit list
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