File: tiny-initramfs

package info (click to toggle)
tiny-initramfs 0.1-4~deb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 724 kB
  • ctags: 314
  • sloc: ansic: 3,631; sh: 1,522; makefile: 48
file content (17 lines) | stat: -rwxr-xr-x 411 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

VERSION="$1"
BOOTDIR="/boot"

# Make sure tiny-initramfs (not only tiny-initramfs-core)
# is still installed (might be removed but not purged).
[ -x "/usr/sbin/update-tirfs" ] || exit 0

[ -z "$VERSION" ] && exit 0

if [ -n "$2" ] ; then
  BOOTDIR="$(dirname "$2")"
fi

echo "tiny-initramfs: Generating ${BOOTDIR}/initrd.img-${VERSION}"
mktirfs -o "${BOOTDIR}/initrd.img-${VERSION}" "${VERSION}" >&2