summaryrefslogtreecommitdiffstats
path: root/modules.d/80test-makeroot/module-setup.sh
blob: f311e4a061935aee525ef7fdae73684879584710 (plain)
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
#!/bin/bash

check() {
    # Only include the module if another module requires it
    return 255
}

depends() {
    echo "dash rootfs-block kernel-modules qemu"
}

installkernel() {
    instmods piix ide-gd_mod ata_piix ext4 sd_mod
}

install() {
    # do not compress, do not strip
    export compress="cat"
    export do_strip="no"
    export do_hardlink="no"
    export early_microcode="no"
    export hostonly_cmdline="no"

    inst_multiple poweroff cp umount sync dd mkfs.ext4
    inst_hook initqueue/finished 01 "$moddir/finished-false.sh"
}