Use proper rename mechanism for libjpeg download
[qi-bootmenu-system.git] / initramfs.sh
blob13ced955e890c977ec19b197353367e67eeadfeb
1 #!/bin/bash
3 source sources/include.sh || exit 1
5 cd $TOP || dienow
7 # copy root overlay
9 tar -C "$ROOT_OVERLAY" -cf - . | tar -C "$ROOT_DIR" -xf -
11 # strip all binaries
13 ${STRIP} "$ROOT_DIR"/usr/{bin/*,sbin/*} 2> /dev/null
14 find "$ROOT_DIR/usr/lib" -name '*.so' | xargs ${STRIP} --strip-unneeded 2>/dev/null
16 # generate file with the contents of the initramfs it's later used
17 # by the kernel build system to create a gziped cpio archive which
18 # is then embedded into the kernel binary.
20 $SCRIPTS/gen_initramfs_list.sh -u squash -g squash $ROOT_DIR > \
21 initramfs-files
23 # Add some more device nodes
25 echo "nod /dev/tty 644 0 0 c 5 0" >> initramfs-files
26 echo "nod /dev/tty0 644 0 0 c 4 0" >> initramfs-files
27 echo "nod /dev/tty1 644 0 0 c 4 1" >> initramfs-files
28 echo "nod /dev/tty2 644 0 0 c 4 2" >> initramfs-files
29 echo "nod /dev/ttyGS0 644 0 0 c 253 0" >> initramfs-files
30 echo "nod /dev/ttySAC2 644 0 0 c 204 66" >> initramfs-files
31 echo "nod /dev/console 622 0 0 c 5 1" >> initramfs-files
32 echo "nod /dev/null 622 0 0 c 1 3" >> initramfs-files
33 echo "nod /dev/fb0 644 0 0 c 29 0" >> initramfs-files
35 echo "Specify initramfs-files during kernel compilation as CONFIG_INITRAMFS_SOURCE"
36 echo "or run ./package.sh to create rootfs.tar.gz tarball for a chroot environment."