File: 0004-kernel-update

package info (click to toggle)
chkboot 1.3-7
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 288 kB
  • sloc: sh: 267; makefile: 31
file content (28 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

set -e

. ./debian/tests/chkboot-testing-lib

case "$AUTOPKGTEST_REBOOT_MARK" in
    "")
        setup_chkboot

        echo "assert initial state"
        chkboot-check

        echo "reinstalling kernel package"
        export DEBIAN_FRONTEND=noninteractive
        apt-get update
        apt-get reinstall --assume-yes "linux-image-$(uname -r)"

        echo "rebooting"
        /tmp/autopkgtest-reboot mark1
        ;;

    mark1)
        echo "assert state after reboot with acknowledged changes"
        chkboot-check
        ;;
esac
echo "test end"