File: linux-image-6.12.38%2Bdeb13-rt-amd64.preinst

package info (click to toggle)
linux-signed-amd64 6.12.38%2B1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 5,852 kB
  • sloc: sh: 177; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 348 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh -e

version=6.12.38+deb13-rt-amd64
image_path=/boot/vmlinuz-$version

if [ "$1" = abort-upgrade ]; then
    exit 0
fi

if [ "$1" = install ]; then
    # Create a flag file for postinst
    mkdir -p /lib/modules/$version
    touch /lib/modules/$version/.fresh-install
fi

linux-run-hooks image preinst $version $image_path -- "$@"

exit 0