![]() |
2008-06-24
, 19:34
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#92
|
export IMGFOLDER=/media/mmc1 bunzip2 -c $IMGFOLDER/$1 | tar xvf - -C $IMGFOLDER/
chroot-extract debian-chroot-img.tar.bz2
![]() |
2008-06-24
, 19:48
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#93
|
![]() |
2008-06-25
, 00:08
|
Posts: 36 |
Thanked: 16 times |
Joined on Apr 2006
|
#94
|
![]() |
2008-06-25
, 01:28
|
|
Posts: 693 |
Thanked: 502 times |
Joined on Jul 2007
|
#95
|
![]() |
2008-06-25
, 05:17
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#96
|
This would provide command like ext2chootrun which would (mount filesystem, run command, unmount filesystem)... or i could just mount and leave open. Base commands for mounting, chroot setup, and unmounting would be sudo-able.
![]() |
2008-06-25
, 06:27
|
Posts: 31 |
Thanked: 3 times |
Joined on Jun 2008
|
#97
|
![]() |
2008-06-25
, 06:52
|
|
Posts: 2,427 |
Thanked: 2,986 times |
Joined on Dec 2007
|
#98
|
Unmounting is often difficult, because many applications start up and then keep running in the chroot. Also, several system paths (/dev, /media, /home/user, etc) get bound into the chroot to make the chroot programs aware of the system... I've found that the only sure way to "close" the chroot is to reboot.
![]() |
2008-06-25
, 07:43
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#99
|
Maybe you should think of incorporating the dynamic symlink technique used in scratchbox....
![]() |
2008-06-25
, 07:52
|
|
Moderator |
Posts: 7,109 |
Thanked: 8,820 times |
Joined on Oct 2007
@ Vancouver, BC, Canada
|
#100
|
UPDATE: i have successfully un tarred the 1gb memory partion, but i am trying to figure out how to mount the damn thing.
The Following User Says Thank You to qole For This Useful Post: | ||
![]() |
Tags |
chroot, debian, easy debian |
|
Last edited by pipeline; 2008-06-24 at 18:25.