maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Moving /usr to /opt/maemo/usr -> major road blocks (https://talk.maemo.org/showthread.php?t=80184)

reinob 2011-11-21 14:07

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
Quote:

Originally Posted by vi_ (Post 1126815)
Wait, doesn't /usr contain data that is needed to mount the emmc. If you move it to the emmc how is it gonna mount the emmc?

Ya follow?

Well, all you need to mount a partition is a running kernel (plus any necessary modules) and /bin/mount. As long as /bin stays in / you should be OK (tm).

So even if /usr is used very early in Maemo, if you mount /usr *first* thing when booting (i.e. first lines of /sbin/preinit) you should be OK (tm).

So much for the theory though... :)

don_falcone 2011-11-21 15:09

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
PS.:
http://talk.maemo.org/showthread.php?t=36011
http://talk.maemo.org/showthread.php...78#post1001236

Estel 2011-11-21 23:27

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
As far as I remember, there were comparison tests for NAND and eMMC speed, and NAND is *much* faster. Can't link to results now, though. Also, keep in mind, that more crucial things on eMMC, more I/O conflicts between it and regular read/writes. We have already avoided it by using swap on microSD, so introducing it back again, by putting things from NAND into eMMC doesn't seems like good design decision at all.

By the way, I wonder, why You have problems with space on rootfs. Currently, I got 55 MB free, *without* deleting any locales, moving any things to eMMC etc. I think You got something eating Your rootfs space (.cap and .ivs files from aircrack? Not optified packages?), cause during normal circumstances, it should not result in "out of space" in any point of time.

Of course it's up to You, and experiments may be worth trying just for sake of knowledge, but it seems for me that You're cutting of leg, instead of curing it.

/Estel

don_falcone 2011-11-22 09:05

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
Non-optified packages, as i have much stuff installed. I travel alot and it's kinda safe feeling to have "everything" with me, just in case and while being offline.

Estel 2011-11-22 09:13

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
So, isn't it easier to just optify such packages, instead of moving everything, including some system "internals"?

don_falcone 2011-11-22 14:53

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
How? With the perl/python script? This still doesn't resolve that critical system files don't belong in /usr...

Estel 2011-11-23 07:50

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
By script, or manually symlinking, one package at a time. I suppose you doesn't have 364646 non optified packages installed?

As for system files not belonging to /usr/, even if we agree about that, what You gain by tinkering with it?... It feels like just aesthetic.

reinob 2011-11-23 08:15

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
@Estel,

I for one would be happy if there was a strict separation between /{bin,sbin,lib} and /usr/{bin,sbin,lib}.

In theory /bin and /sbin and /lib should contain what is required for booting. The rest can and should go to /usr.

Whenever I installed linux in the past I always made a separate partition for /usr and I kept / read-only (also /usr, but that was more flexible).

I just "feels right" to be able to say: this partition is all I need to boot, so I want it separate from the rest.

szopin 2012-02-23 20:55

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
Just a thought (sorry for resurrecrting this thread), most problems with symlinks (except the ones that _need_ rootfs as in booting routine) is that at some point ../.. leads nowhere (my understanding of actual problem is limited, very), Tanner had similar problems with libs/includes... Has anyone tried just optifying to the same level of depth? so ../.. would result in exactly 2 level shallower call? If when building something symlinked to /opt/dir1/ calls ../ it ends up in /opt, proposed solution (most likely ********) link files to /opt/. Same depth wouldn't help those situations? It guarantees a mess in /opt/ (you can put /lib files and /bin etc), but should keep those nasty one-level down calls in check? Any thoughts???

itsnotabigtruck 2012-02-23 21:45

Re: Moving /usr to /opt/maemo/usr -> major road blocks
 
Has anyone tried bind mounting /opt/maemo/usr into /usr (if not via /etc/fstab, then via the boot scripts)? That should be closer to "the real thing" compared to a symlink.


All times are GMT. The time now is 12:03.

vBulletin® Version 3.8.8