summaryrefslogtreecommitdiffstats
path: root/files/90mgalive/module-setup.sh
blob: 8a6a2f83ebff679c112fad0c949ea05f614241ac (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
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

check() {
    # a live host-only image doesn't really make a lot of sense
    [[ $hostonly ]] && return 1
    return 255
}

depends() {
    return 0
}

installkernel() {
    instmods squashfs loop unionfs
}

install() {
    dracut_install umount
    inst blkid
    inst dd
    inst losetup
    inst grep

    dracut_install -o eject

    inst blockdev
    inst_hook cmdline 30 "$moddir/mgalive-parse.sh"
    inst_hook pre-udev 30 "$moddir/mgalive-genrules.sh"
    inst_hook pre-udev 30 "$moddir/mgaliveiso-genrules.sh"
    #inst_hook pre-pivot 20 "$moddir/apply-live-updates.sh"
    inst "$moddir/mgalive-root.sh" "/sbin/mgalive-root"
    # should probably just be generally included
    inst_rules 60-cdrom_id.rules
}