Using catalyst2 rc_40 to produce a livecd with a custom motd. From the livecd stage2 spec file: livecd/motd: /etc/catalyst2/livecd-motd.txt The livecd-stage2-controller.sh script from /usr/lib/catalyst2/targets/livecd-stage2 works correctly and grabs the custom motd file. But the livecdfs-update.sh script in /usr/lib/catalyst2/targets/support runs after that and blanks the created motd file. This occurs, I believe, when the script tries to cat out the contents of the missing generic-motd and minimal-motd files to the custom motd file. YOu can duplicate this problem by creating a text file and then running cat "missing file.txt" > "created_text_file.txt". Contents of the created text file will be blanked out. Portage 2.0.54 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7 i686) ================================================================= System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz Gentoo Base System version 1.12.0_pre16 ccache version 2.3 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-march=i686 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox" GENTOO_MIRRORS="http://gentoo.osuosl.org http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://gentoo.ccccom.com http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acpi alsa apache2 arts artswrappersuid asf audiofile avi bash-completion berkdb bigger-fonts bitmap-fonts bluetooth bzip2 cairo ccache cdparanoia cdr cgi clamav cli commercial crypt css ctype cups curl dba dbus divx4linux dri dvd dvdr dvdread eds emboss encode esd exif expat fam fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif gimp gimpprint glitz glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal howl idn imagemagick imap imlib ipv6 java javascript jpeg kde kdeenablefinal kdexdeltas lcms libg++ libwww lm_sensors logitech-mouse logrotate mad mbox memlimit mhash mikmod mmx mng motif mozilla mp3 mpeg musicbrainz nautilus ncurses nls nptl nptlonly nsplugin nvidia offensive ogg on-the-fly-crypt opengl oss pam pcre pdf pdflib perl pic png pop posix ppds python qt quicktime rdesktop readline real samba scanner sdl session simplexml slang smp smtp snmp soap sockets spell spl sse sse2 ssl svg sysfs tcltk tcpd tiff tokenizer toolbar transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales vcd vorbis win32codecs xcomposite xine xinerama xml xml2 xmms xprint xscreensaver xsl xv xvid zeroconf zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Which livecd/type are you using?
livecd/type: gentoo-release-minimal livecd/motd: /etc/catalyst2/my-motd.txt
Usage of livecd/type: gentoo-release-* for building non-Gentoo releases is not supported.