All pastes #1518844 Raw Edit

partho

public text v1 · immutable
#1518844 ·published 2009-08-05 06:54 UTC
rendered paste body
mount -v --bind /dev /mnt/buildroot/dev && mount -vt devpts devpts /mnt/buildroot/dev/pts && mount -vt tmpfs shm /mnt/buildroot/dev/shm && mount -vt proc proc /mnt/buildroot/proc && mount -vt sysfs sysfs /mnt/buildroot/sys


mkdir -v /mnt/buildroot && mount -v /dev/sda2 /mnt/buildroot && mkdir -v /mnt/buildroot/boot && mount -v /dev/sda1 /mnt/buildroot/boot

debootstrap --arch i386 squeeze /mnt/buildroot

echo "127.0.0.1 localhost.localdomain localhost sandbox" > /etc/hosts && echo "sandbox " > /etc/hostname

deb http://ftp.debian.org/debian testing main non-free contrib
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://ftp.debian.org/debian testing main non-free contrib
deb-src http://security.debian.org/ testing/updates main contrib non-free

apt-get install initramfs-tools

mount -o remount,rw /boot

apt-get install grub

mount -o remount,rw /mnt/buildroot/boot

root (hd0,0)

setup (hd0)

quit

/etc/kernel-img.conf

do_symlinks = yes
relative_links = yes
do_bootloader = no
do_bootfloppy = no
do_initrd = yes        ## <--- Verify this line
link_in_boot = yes
postinst_hook = update-grub
postrm_hook   = update-grub

mount -o remount,ro /boot

mount -o remount,ro /mnt/buildroot/boot