File: rootfs

package info (click to toggle)
debootstick 2.8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 296 kB
  • sloc: sh: 1,364; makefile: 34
file content (21 lines) | stat: -rw-r--r-- 465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# vim: filetype=sh

prepare_rootfs()
{
    if [ "$2" = "inside" ]
    then
        # if update-grub is called as part of the package installation
        # it should properly find our virtual device.
        # (we will properly install the bootloader on the final device
        # anyway, this is only useful to avoid warnings)
        update_grup_device_map
    fi
}

cleanup_rootfs()
{
    if [ "$2" = "inside" ]
    then
        rm boot/grub/device.map
    fi
}