[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Confused about the deb 8.0 lb build commands



Hi debian-live,

I Thank anyone who is reading this. Sorry but I need help
as I am stumped on deb 8.0 lb build commands and
where to put one of my hook scripts.

I should start out by apologizing that I am pretty dumb with
understanding the new deb 8.0 live build docs. Sorry again.

Since I have built dozens of deb 6 and 7 custom debian iso hybrids
in the past two years using lb build I am having great difficulty
in understanding lb build 8.0

I have read the docs several times but cannot figure out
how to make this script I presume must be put into /config/hooks which
will take my custom 800 x 75 banner.png from /config/debian-installer
and replace the stock Debian 800 X 75 logo_debian.png during the lb build.

Is /config/hooks in deb 8.0 used since 8.0 no longer has
/config/binary_local-hooks
like it did in deb 6 & 7?

My deb 6 and 7 hook script name was:  banner-change.sh.binary
Is the name supposed to be changed to banner-change.sh.binary.hook.chroot ?

(Sorry again for being so dumb)

Here is what was in my deb 6 and 7 script that worked every time:
[Please I need to make it work in live build 8.0]

<-----
#!/bin/sh
# This is an binary hook for live-build(7) to overwrite the banner
# in the graphical Debian Installer.
# To enable it, copy or symlink this hook into your
config/binary_local-hooks
# directory and add a replacement banner.png at:
#
#  config/debian-installer/banner.png
#
# The file should be a PNG image of dimensions 800 x 75.
set -e

if [ -e config/debian-installer/banner.png ]
then
    TARGET_INITRD="binary/install/gtk/initrd.gz"
    REPACK_TMPDIR="binary.initrd"

    if [ -e "${TARGET_INITRD}" ]
    then
        # cpio does not have a "extract to directory", so we must change
        # directory
        mkdir -p ${REPACK_TMPDIR}
        cd ${REPACK_TMPDIR}
     gzip -d < ../${TARGET_INITRD} | cpio -i --make-directories
--no-absolute-filenames

        # Overwrite banner
        cp ../config/debian-installer/banner.png
./usr/share/graphics/logo_debian.png

        find | cpio -H newc -o | gzip -9 > ../${TARGET_INITRD}
        cd ..
        rm -rf ${REPACK_TMPDIR}
    fi
fi

------>

Here is an example of what is also confusing to me in the deb 8.0 docs
below: ???-->
(The top two lines are easy to understand btw)

lb config
echo task-gnome-desktop > config/package-lists/desktop.list.chroot

lb config --architectures i386 --linux-flavours 486 \
??-->         --debian-installer live
$ echo debian-installer-launcher >> config/package-lists/my.list.chroot

I have never seen a \ in a live build command. Why is --debian-installer
live
on its own line with no command?

I presume it is part of this command?

lb config --architectures i386 --linux-flavours 486 \ --debian-installer
live

I greatly appreciate any help and again I really apologize for bone
heading this
so much. This old dog needs to learn the new 8.0 tricks somehow.


Thank you again to everyone reading this.

John



Reply to: