1 |
On Tuesday 17 July 2007, Samir Faci wrote: |
2 |
> I'm actually trying a slightly different approach that's almost |
3 |
> equivalent to doing a fresh install. |
4 |
> |
5 |
> If I don't bork this up, I'll write a lil wiki on how to do this. |
6 |
> |
7 |
> 1. create a loopback file system. dd if=/dev/zero of=baseimage |
8 |
> bs=1k count=5242880 (5 gig image) |
9 |
> 2. partition the baseimage |
10 |
> 3. do your typical gentoo install on the baseimage file |
11 |
> 4. sync data from baseimage fs, to / omitting /dev /proc /sys /home |
12 |
> making sure this is all backed up |
13 |
> 5. rerun grub to make sure everything is proper |
14 |
> 6. reboot and pray. |
15 |
> |
16 |
> so, if I'm right, that should give me a clean fresh install. I'll |
17 |
> take a backup of my /etc directory and I need to remember to backup |
18 |
> mysql db, but I believe that should work fine. I would do this off a |
19 |
> liveCD if I had physical access to the machine. |
20 |
> |
21 |
> It seems like the cleanest solution. if I run emerge -uDN (etc) |
22 |
> world it just keeps pulling X and other crap I removed, and since 80% |
23 |
> of what's on the machine it unneeded, a fresh start wouldn't hurt. |
24 |
> |
25 |
> if anyone is interested, I'll post an update on how my install went |
26 |
> once it's back up. |
27 |
|
28 |
It seems to me that you are overlooking some stuff, and what you propose |
29 |
is just way too complex. |
30 |
|
31 |
Packages get pulled in through your world file, USE flags and due to |
32 |
run-time and build time deps. If emerge keeps wanting to pull in |
33 |
something X related, it's because you left someting in one of those |
34 |
three categories that is X-related. Simply find it and handle it. I |
35 |
have several times removed gnome and kde from this machine and it was |
36 |
much faster than a reinstall. |
37 |
|
38 |
'emerge -pe' and 'equery depgraph' are your friends |
39 |
|
40 |
alan |
41 |
|
42 |
-- |
43 |
Optimists say the glass is half full, |
44 |
Pessimists say the glass is half empty, |
45 |
Developers say wtf is the glass twice as big as it needs to be? |
46 |
|
47 |
Alan McKinnon |
48 |
alan at linuxholdings dot co dot za |
49 |
+27 82, double three seven, one nine three five |
50 |
-- |
51 |
gentoo-user@g.o mailing list |