<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7653.38">
<TITLE>root access required?</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Hello,<BR>
<BR>
In my endeavor to set up a build environment for our developers experimenting with oVirt / libvirt, I have come across a general dislike that the build of the ovirt managed node requires the user to be root.<BR>
<BR>
In looking into this we have found 2 areas that I am unable to work out a solution for:<BR>
<BR>
1. livecd-tools must mount a filesystem image, requiring:<BR>
    (a) losetup /dev/loopX fs-image<BR>
        Where the user must have write access to /dev/loopX (which by<BR>
        default is writable only by root, readable by group 'disk'). Could be<BR>
        worked around by changing /dev/loopX permissions (once, as root).<BR>
    (b) mount /dev/loopX /mnt/point<BR>
        Also requires root. Can be worked around with /etc/fstab entry<BR>
        allowing user mount.<BR>
<BR>
2. 'rpm --root ...' is used to build the image.<BR>
    --root must chroot to the specified directory to run the various RPM scripts.<BR>
    chroot can't run under 'fakeroot' (AFAIK).<BR>
    I don't know how to avoid or workaround this.<BR>
<BR>
So -<BR>
Does anyone here have any suggestions/recommended practices on how to go about working around these so that root access is not required?<BR>
<BR>
Or - are we stuck with "that's just the way it is" for building the managed node image?<BR>
<BR>
Ben</FONT>
</P>

</BODY>
</HTML>