Op 13-04-2008 om 10:12 schreef Geert Stappers: > There is a file named something like "/etc/lsb-release" It is... |stappers@viggo:~ |$ mkdir 475774/ |stappers@viggo:~ |$ cd !$ |cd 475774/ |stappers@viggo:~/475774 |$ wget -q http://ftp.nl.debian.org/debian/dists/testing/main/installer-amd64/current/images/netboot/netboot.tar.gz |stappers@viggo:~/475774 |$ tar xzf netboot.tar.gz # extract the tarball |stappers@viggo:~/475774 |$ ls |debian-installer netboot.tar.gz pxelinux.0 pxelinux.cfg |stappers@viggo:~/475774 |$ cd debian-installer/amd64/ # go into directory with d-i boot files |stappers@viggo:~/475774/debian-installer/amd64 |$ file initrd.gz # what kind of file is it? |initrd.gz: gzip compressed data, was "initrd", from Unix, last modified: |Wed Feb 27 18:28:23 2008, max compression |stappers@viggo:~/475774/debian-installer/amd64 |$ gunzip initrd.gz # decompress it |stappers@viggo:~/475774/debian-installer/amd64 |$ file initrd # what is it? |initrd: ASCII cpio archive (SVR4 with no CRC) |stappers@viggo:~/475774/debian-installer/amd64 |$ mkdir initialramdisk # create a new directory |stappers@viggo:~/475774/debian-installer/amd64 |$ cd !$ # go there |cd initialramdisk |stappers@viggo:~/475774/debian-installer/amd64/initialramdisk |$ cpio -i < ../initrd |cpio: dev/console: Cannot mknod: Operation not permitted |cpio: dev/null: Cannot mknod: Operation not permitted |28174 blocks |stappers@viggo:~/475774/debian-installer/amd64/initialramdisk |$ ls |bin etc init lib mnt sbin tmp var |dev floppy initrd lib64 proc sys usr |stappers@viggo:~/475774/debian-installer/amd64/initialramdisk |$ ls etc/*lsb* # check for some lsb file |etc/lsb-release |stappers@viggo:~/475774/debian-installer/amd64/initialramdisk |$ cat etc/lsb-release # show it |DISTRIB_ID=Debian |DISTRIB_DESCRIPTION="Debian GNU/Linux installer" |DISTRIB_RELEASE="lenny (installer build 20080227)" |X_INSTALLATION_MEDIUM=netboot |stappers@viggo:~/475774/debian-installer/amd64/initialramdisk |$ Cheers Geert Stappers
Attachment:
signature.asc
Description: Digital signature