How do you add a preseed file to the initrd?



I'm trying to add my preseed.cfg file into the root of the initrd, as mentioned is possible in the debian preseed documentation: http://d-i.alioth.debian.org/manual/en.i386/apbs02.html#preseed-loading

So once I've mounted the boot cd, copied the initrd.gz to a temp location I try to add it to the cpio initrd file:
cat preseed.cfg | cpio -ovcA -O initrd
cpio: premature end of file

If I try to fully extract the cpio file it tries to create device nodes, which it can't because I'm not root (and don't want to become because I need to package all these steps up into a script that won't run as root).

So how is this supposed to be done? Surely someone here's had to do it before?

Tim


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Understanding the -depth option of find?
    ... I like cpio because it accepts output from "find", a list of files, or any ... behavior and command-line options on FreeBSD, Linux, and Solaris. ... root# touch /backup/etc/drive1 ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: kernel compile - Unable to mount root fs
    ... You need a line like that just below the item for the kernel you're ... except that you want the initrd version to match the ... contains the contents of a small initial root filesystem, ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: Rootfs mounted from user space - problem with umount
    ... I'm missing something - why not use an initrd and pivot_root and then ... unmount the old root? ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [PATCH] documentation: Documentation/initrd.txt
    ... the boot loader loads the kernel and the initial RAM disk ... frees the memory used by initrd ... initrd is mounted read-write as root ... linuxrc places the root file system at the root directory using the ...
    (Linux-Kernel)
  • Multibooting utilizing Kickstart & Grub (RHEL 3u6,3u8,3u9,4u6,...)
    ... # all kernel and initrd paths are relative to /boot/, ... # root ... title Red Hat Enterprise Linux WS ...
    (RedHat)