Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MNT Reform Tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sevan Janiyan
MNT Reform Tools
Commits
176fba59
Verified
Commit
176fba59
authored
6 months ago
by
Johannes Schauer Marin Rodrigues
Browse files
Options
Downloads
Patches
Plain Diff
add /usr/share/kernel/postinst.d/zz-reform-tools
parent
9fd11409
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
debian/reform-tools.install
+1
-0
1 addition, 0 deletions
debian/reform-tools.install
kernel/zz-reform-tools
+49
-0
49 additions, 0 deletions
kernel/zz-reform-tools
with
50 additions
and
0 deletions
debian/reform-tools.install
+
1
−
0
View file @
176fba59
...
...
@@ -8,6 +8,7 @@ flash-kernel/* /usr/share/flash-kernel
initramfs
-
tools
/
hooks
/
reform
/
usr
/
share
/
initramfs
-
tools
/
hooks
initramfs
-
tools
/
reform
.
conf
/
usr
/
share
/
initramfs
-
tools
/
modules
.
d
/
initramfs
-
tools
/
scripts
/
reform
/
usr
/
share
/
initramfs
-
tools
/
scripts
/
init
-
top
kernel
/
zz
-
reform
-
tools
/
usr
/
share
/
kernel
/
postinst
.
d
/
zz
-
reform
-
tools
libexec
/*
/
usr
/
libexec
machines
/*
/
usr
/
share
/
reform
-
tools
/
machines
mnt
-
icon
-
font
/
MNTIcons
.
ttf
/
usr
/
share
/
fonts
/
truetype
/
...
...
This diff is collapsed.
Click to expand it.
kernel/zz-reform-tools
0 → 100755
+
49
−
0
View file @
176fba59
#!/bin/sh
#
# Populate /boot with all known dtbs.
# The flash-kernel package is still needed to provide the /boot/dtb-$(uname -r)
# symlink. That symlink is needed on platforms that do not set the `${fdtfile}`
# u-boot environment variable.
set
-e
self
=
"
$0
"
version
=
"
$1
"
image_path
=
"
$2
"
set
--
$DEB_MAINT_PARAMS
# strip single quotes from beginning and end
action
=
"
${
1
#\
'}"
action="${mode%\'
}
"
set
-u
install_dtbs
()
{
for
CONF
in
/usr/share/reform-tools/machines/
*
.conf
;
do
.
"
$CONF
"
dtb
=
$(
find
"/usr/lib/linux-image-
$version
"
-wholename
"*/
$DTBPATH
"
2>/dev/null |
head
-n
1
)
if
!
test
-f
"
$dtb
"
;
then
echo
"E:
$dtb
does not exist"
>
&2
continue
fi
mkdir
-p
"/boot/dtbs/
$version
/
$(
dirname
"
$DTBPATH
"
)
"
cp
"
$dtb
"
"/boot/dtbs/
$version
/
$DTBPATH
"
done
}
remove_dtbs
()
{
for
CONF
in
/usr/share/reform-tools/machines/
*
.conf
;
do
.
"
$CONF
"
rm
-f
"/boot/dtbs/
$version
/
$DTBPATH
"
||
:
done
rmdir
--ignore-fail-on-non-empty
"/boot/dtbs/
$version
"
}
case
"
$self
:
$action
"
in
# Only run on postinst configure and postrm remove, to avoid wasting
# time by calling this script multiple times on upgrade and removal.
*
/postinst.d/
*
:configure
)
install_dtbs
;;
*
/postrm.d/
*
:remove
)
remove_dtbs
;;
*
)
exit
0
;;
esac
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