summarylogtreecommitdiffstats
path: root/tarballroot-hook
blob: 6ef5243fb3d9b2c7c627efa3e8469d73e795cfbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# vim: set ft=sh:
run_hook() {
    if [ "${root}" = "tarball" ]; then
        # set mount handler
        mount_handler="tarball_mount_handler"
    fi
}

tarball_mount_handler() {
    mount -t tmpfs root "$1"
    wget -O- ${tarball} | tar -Jx -C "$1"
}

# vim: set ft=sh ts=4 sw=4 et: