[oe] [PATCH 01/12] fso-image.inc: add an even shorter alias, for ls -l

Martin Jansa martin.jansa at gmail.com
Mon Jun 7 07:50:56 UTC 2010


On Mon, Jun 07, 2010 at 09:24:54AM +0200, Antonio Ospite wrote:
> On Mon, 31 May 2010 13:19:30 +0200
> Koen Kooi <k.kooi at student.utwente.nl> wrote:
> 
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > On 31-05-10 11:55, Antonio Ospite wrote:
> > > 'l' is a must have along with 'll'.
> > > 
> > > Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>
> [...]
> > diff --git a/recipes/images/fso-image.inc b/recipes/images/fso-image.inc
> [...]
> > > +    echo "alias l='ls -l'" >>./etc/profile
> > >      echo "alias ll='ls -al'" >>./etc/profile
> > >      # nfs
> > >      mkdir -p ./local/pkg
> > 
> > And what happens if you opkg upgrade base-files? You suddenly lost all
> > your tweaks to /etc/profile.
> 
> Right, /etc/profile would be overwritten, but that's quite independent
> from this very patch, it's the whole fso-image.inc approach which
> should be revised, so I'd like this one could still make it.
> 
> Or if you can point to the right way to do what
> recipes/images/fso-image.inc::fso_rootfs_postprocess() is doing I can
> try to implement that.

Apply those changes in base-files recipe.

If you send it as RFC to list than maybe it will be OK for everyone,
otherwise you can apply it with distro override or something.

Maybe those profile tweaks should be in user profile instead of system
profile? Someone noticed that xserver-common Xsession script is using
only "ls" to list Xsession.d scripts and then later fails if profile has
alias ls="ls --color"...

FYI: I removed similar postprocess tweaks from shr images about a month
ago, because of those reasons...

Regards,

-- 
Jansa 'JaMa' Martin     jabber: Martin.Jansa at gmail.com




More information about the Openembedded-devel mailing list