Why don’t you try with Debian chroot install on LaCie Network Space 2 as you might get your desired output. As I have tried this solution and managed to install Debian testing and access it by means of ssh on Lacie Network Space 2. You can go this way if you are intending to install Debian with chroot on LaCie Network Space 2.
so you need to create chroot enviorment on your existing debian machine.
Code:
# debootstrap --arch armel testing ./testing-armel-chroot
2)then you will require to Rsync the whole bundle on your Lacie Network Space 2 , for example /shares/MyShare/testing-armel-chroot
3) you will be having an symlink chroot destination /shares/MyShare/testing-armel-chroot to /debian
4) then you need to create chroot one-time wrapper script so that you are able to mount chroot enviorment correctly and prepare networking:
Code:
# cat /etc/chroot.debian
#!/bin/sh
ROOTFS=/debian
if test "$(whoami)" = "root" ; then
DEV=eth0:2
IP=192.168.1.10
ifconfig $DEV down
ifconfig $DEV $IP up
mount -t proc proc ${ROOTFS}/proc
mount --bind /dev ${ROOTFS}/dev
chroot ${ROOTFS} su root -c "/bin/bash $*"
fi
5) and this is an final step as you may now be able to access to your Debian chrrot moreover by means of chroot:
Code:
# chroot /debian /bin/bash
other means of doing so by adjusting dropbear configuration file , you are able to start ssh deamon.
Code:
# cat /debian/etc/dropbear/run
#!/bin/sh
exec 2>&1
OPTS="-F -E -p 2022 "
exec dropbear -d ./dropbear_dss_host_key -r ./dropbear_rsa_host_key $OPTS
# sh /etc/chroot.debian /etc/init.d/dropbear restart
Bookmarks