Gentoo Archives: gentoo-embedded

From: Mike Frysinger <vapier@g.o>
To: gentoo-embedded@l.g.o
Subject: Re: [gentoo-embedded] Replacing glibc with uclibc on live system
Date: Sat, 27 Aug 2005 18:43:11
Message-Id: 200508271442.37193.vapier@gentoo.org
In Reply to: [gentoo-embedded] Replacing glibc with uclibc on live system by aeriksson@fastmail.fm
1 On Saturday 27 August 2005 05:27 am, aeriksson@××××××××.fm wrote:
2 > My old Pentium with 32MB ram used as a firewall really dislikes upgrading
3 > glibc. I'm considering replacing it wit uclibc. I've tinkered a bit with
4 > uclibc for a standalone non-gentoo env, but I'd like to know what the right
5 > procedures is for doing this on a live gentoo system. Any gotchas?
6
7 ive done this once myself ... your best bet is:
8 - install busybox into the glibc system (if you dont already have it)
9 - build up a uClibc chroot somewhere so it has everything you need
10 - tar up the uClibc chroot and move it to your firewall / dir
11 - login to the firewall machine
12 - run `bb`
13 - run something like `rm -rf /bin /etc /lib* /opt /sbin /usr /var`
14 - unpack the uClibc chroot tar into / (make sure to use the p option)
15 - trying starting either dropbear or sshd
16 - make sure you can login to the machine before exiting your bb shell
17
18 of course you may want to tweak certain details and YMMV :P
19 -mike
20 --
21 gentoo-embedded@g.o mailing list