File: linux-image-6.18-test.preinst.amd64

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

version=6.18-test
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