Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
pmaports
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
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
postmarketOS
pmaports
Commits
75124bb5
Commit
75124bb5
authored
6 years ago
by
Daniele Debernardi
Committed by
Oliver Smith
6 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add initfs hook which causes a kernel panic (useful for debugging)
parent
26bde0a5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#192277
failed
6 years ago
Stage: first
Stage: second
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
main/postmarketos-mkinitfs-hook-kernel-panic/00-kernel-panic.sh
+8
-0
8 additions, 0 deletions
...ostmarketos-mkinitfs-hook-kernel-panic/00-kernel-panic.sh
main/postmarketos-mkinitfs-hook-kernel-panic/APKBUILD
+17
-0
17 additions, 0 deletions
main/postmarketos-mkinitfs-hook-kernel-panic/APKBUILD
with
25 additions
and
0 deletions
main/postmarketos-mkinitfs-hook-kernel-panic/00-kernel-panic.sh
0 → 100644
+
8
−
0
View file @
75124bb5
#!/bin/sh
echo
"PMOS DEBUG: kernel panic in 30s"
>
/dev/kmsg
sleep
30s
echo
"PMOS DEBUG: kernel panic now"
>
/dev/kmsg
echo
c
>
/proc/sysrq-trigger
This diff is collapsed.
Click to expand it.
main/postmarketos-mkinitfs-hook-kernel-panic/APKBUILD
0 → 100644
+
17
−
0
View file @
75124bb5
pkgname
=
"postmarketos-mkinitfs-hook-kernel-panic"
pkgver
=
0.1.0
pkgrel
=
0
pkgdesc
=
"Script to cause a kernel panic after 30s from the initramfs (for debugging only)"
url
=
"https://postmarketos.org"
depends
=
"postmarketos-mkinitfs"
source
=
"00-kernel-panic.sh"
arch
=
"noarch"
license
=
"GPL2"
package
()
{
mkdir
-p
"
$pkgdir
"
/etc/postmarketos-mkinitfs/hooks/
install
-Dm644
"
$srcdir
"
/00-kernel-panic.sh
\
"
$pkgdir
"
/etc/postmarketos-mkinitfs/hooks/
}
sha512sums
=
"39be4de98daf4306c15dc8196bcd7649a149e5babccf9860c753d40f1e17ef550556444f65238d30d9dbc3d8610319b0d00f9ff99f128fd8a6bd4cdfb3b38dbe 00-kernel-panic.sh"
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