ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] LTIB build errors (permission denied and too many levels of s


From: Stuart Hughes
Subject: Re: [Ltib] LTIB build errors (permission denied and too many levels of symbolic links)
Date: Fri, 14 Mar 2008 08:51:07 +0000

Hi Peter,

It looks as if at some point someone either ran ltib as root, or they
copied something into rootfs.tmp as root.

Normally you should run ltib as a normal user (never root).  When it
runs, it only ever uses sudo to become root when installing/removing
target rpms.  This means that only files under rootfs should be owned by
root.  This is necessary as that area has to function as a bootable NFS
area and so must have the right owners and permissions.

On the other hand, rootfs.tmp is created by copying rootfs as the normal
user, so the files under there should only be owned by your normal user
account.  It is left to genext2fs/mkfs.jffs to squash the owner to be
root internally inside the image.

So I think as long as you clean up and then stick with a normal user
account for running ltib, you should be okay.

Regards, Stuart

On Thu, 2008-03-13 at 15:29 -0400, Stephens, Peter A. wrote:
> During build operations using LTIB I have a problem with permissions and
> the number of levels of symbolic links.  It seems like LTIB wants a
> portion of the commands to build the root file system to be run as the
> root user, but this appears not to be happening.  Line 481 makes a call
> to the function "mk_fs_image" defined in "Ltibutils.pm". I found out
> that the "rm -..." commands were not being called as root.  Thank you in
> advance for your inputs.
> 
> I am using Fedora 8 with ltib-mpc5121ads-20071210.
> 
> ---------------------- The output from two subsequent runs is below
> ----------------------
> 
> Run 1: After a "./ltib -m distclean" and "sudo rm -rf ./rootfs.tmp/*",
> and then running "./ltib --configure" I get:
> 
>    Processing deployment operations
>    ==================================
>    making filesystem image file
>    staging directory is
> /home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp
>    removing the boot directory and files
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/boot/u-boot.bin':
> Permission denied
> 
>    ...
> 
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/boot/linux.config
> ': Permission denied
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/boot/mpc5121ads.d
> tb': Permission denied
>    Died at ./ltib line 481, <> line 360.
> 
>    Started: Tue Mar 11 17:15:09 2008
>    Ended:   Tue Mar 11 17:36:22 2008
>    Elapsed: 1273 seconds
> 
>    Build Failed
> 
>    Exiting on error or interrupt
> 
> Run 2: Running "./ltib --configure" a second time gives:
> 
>    Processing deployment operations
>    ==================================
>    making filesystem image file
>    staging directory is
> /home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/bin/gzip': Too
> many levels of symbolic links
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/bin/df': Too many
> levels of symbolic links
> 
>    ...
> 
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/bin/bash':
> Permission denied
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/bin/chgrp': Too
> many levels of symbolic links
> 
>    ...
> 
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/usr/bin/patch':
> Too many levels of symbolic links
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/usr/bin/gst-feedb
> ack': Permission denied
> 
>    ...
> 
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/boot/bootable_ker
> nel': Too many levels of symbolic links
>    rm: cannot remove
> `/home/hzqmrk/proj/ltib-mpc5121ads-20071210/rootfs.tmp/boot/mpc5121ads.d
> tb': Permission denied
>    Died at ./ltib line 481, <> line 358.
> 
>    Started: Thu Mar 13 13:17:59 2008
>    Ended:   Thu Mar 13 13:19:56 2008
>    Elapsed: 117 seconds
> 
>    Build Failed
> 
>    Exiting on error or interrupt
>  
> 
> Peter A. Stephens 
> address@hidden
> 765-451-7074    
> 
> 
> ****************************************************************************************
> 
> Note:  If the reader of this message is not the intended recipient, or an 
> employee or agent responsible for delivering this message to the intended 
> recipient, you are hereby notified that any dissemination, distribution or 
> copying of this communication is strictly prohibited. If you have received 
> this communication in error, please notify us immediately by replying to the 
> message and deleting it from your computer. Thank you. 
> 
> ****************************************************************************************
> 
> 
> _______________________________________________
> LTIB home page: http://bitshrine.org
> 
> Ltib mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/ltib





reply via email to

[Prev in Thread] Current Thread [Next in Thread]