From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Bolanos Subject: ** Applied ** Re: Uses sudo in elkscmd/Makefile Date: Fri, 04 Jun 2004 09:24:48 -0600 Sender: linux-8086-owner@vger.kernel.org Message-ID: <1086357569.3235.0.camel@talena.hsol.net> References: <20040603184148.96396.qmail@web51305.mail.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-oYhCqOpdtN2X/Q3I7OFk" Return-path: In-Reply-To: <20040603184148.96396.qmail@web51305.mail.yahoo.com> List-Id: To: Tommy McCabe Cc: linux-8086@vger.kernel.org --=-oYhCqOpdtN2X/Q3I7OFk Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Applied thanks. Mike On Thu, 2004-06-03 at 12:41, Tommy McCabe wrote: > This patch uses sudo in elkscmd/Makefile to mount the > elkscmd filesystems without having to take the trouble > of logging in and logging back out (or having > everything compile as root instead of normal user). >=20 >=20 > =09 > =09 > __________________________________ > Do you Yahoo!? > Friends. Fun. Try the all-new Yahoo! Messenger. > http://messenger.yahoo.com/ >=20 > ______________________________________________________________________ > --- ./elkscurr/elkscmd/Makefile 2004-06-03 14:36:56.000000000 -0400 > +++ ./elks/elkscmd/Makefile 2004-06-03 14:36:23.000000000 -0400 > @@ -154,42 +154,42 @@ > =20 > mount_combfs: $(COMB_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue > $(MKFS) $(MKFS_OPTS) $(COMB_TARGET_FS) $(COMB_TARGET_BLKS) > - mount $(COMB_TARGET_FS) $(TARGET_MNT) $(LOOP) > + sudo -u root mount $(COMB_TARGET_FS) $(TARGET_MNT) $(LOOP) > (cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \ > (cd $(TARGET_MNT) ; tar xpvf -) > (cd $(TARGET_MNT)/dev ; ./MAKEDEV) > =20 > mount_full3fs: $(FULL3_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/iss= ue > $(MKFS) $(MKFS_OPTS) $(FULL3_TARGET_FS) $(FULL3_TARGET_BLKS) > - mount $(FULL3_TARGET_FS) $(TARGET_MNT) $(LOOP) > + sudo -u root mount $(FULL3_TARGET_FS) $(TARGET_MNT) $(LOOP) > (cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \ > (cd $(TARGET_MNT) ; tar xpvf -) > (cd $(TARGET_MNT)/dev ; ./MAKEDEV) > =20 > mount_full5fs: $(FULL5_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/iss= ue > $(MKFS) $(MKFS_OPTS) $(FULL5_TARGET_FS) $(FULL5_TARGET_BLKS) > - mount $(FULL5_TARGET_FS) $(TARGET_MNT) $(LOOP) > + sudo -u root mount $(FULL5_TARGET_FS) $(TARGET_MNT) $(LOOP) > (cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \ > (cd $(TARGET_MNT) ; tar xpvf -) > (cd $(TARGET_MNT)/dev ; ./MAKEDEV) > =20 > mount_rootfs: $(ROOT_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue > $(MKFS) $(MKFS_OPTS) $(ROOT_TARGET_FS) $(ROOT_TARGET_BLKS) > - mount $(ROOT_TARGET_FS) $(TARGET_MNT) $(LOOP) > + sudo -u root mount $(ROOT_TARGET_FS) $(TARGET_MNT) $(LOOP) > (cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \ > (cd $(TARGET_MNT) ; tar xpvf -) > (cd $(TARGET_MNT)/dev ; ./MAKEDEV) > =20 > mount_rootnetfs: $(ROOT_NET_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/et= c/issue > $(MKFS) $(MKFS_OPTS) $(ROOT_NET_TARGET_FS) $(ROOT_NET_TARGET_BLKS) > - mount $(ROOT_NET_TARGET_FS) $(TARGET_MNT) $(LOOP) > + sudo -u root mount $(ROOT_NET_TARGET_FS) $(TARGET_MNT) $(LOOP) > (cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \ > (cd $(TARGET_MNT) ; tar xpvf -) > (cd $(TARGET_MNT)/dev ; ./MAKEDEV) > =09 > mount_sibofs: $(SIBO_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue > $(MKFS) $(MKFS_OPTS) $(SIBO_TARGET_FS) $(SIBO_TARGET_BLKS) > - mount $(SIBO_TARGET_FS) $(TARGET_MNT) $(LOOP) > + sudo -u root mount $(SIBO_TARGET_FS) $(TARGET_MNT) $(LOOP) > (cd $(ELKSCMD_DIR)/rootfs_template ; tar cf - --exclude CVS *) | \ > (cd $(TARGET_MNT) ; tar xpvf -) > (cd $(TARGET_MNT) ; rm -rf home boot root var) --=20 --------------------miguel bolanos, systems administrator, linuxlabs ... ........ ..... .... 230 peachtree st nw ste 2701 the original linux labs atlanta.ga.us 30303 -since 1995 http://www.linuxlabs.com office 404.577.7747 fax 404.577.7743 -------------------------------------------------------------------- --=-oYhCqOpdtN2X/Q3I7OFk Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBAwIBAdQCX3Gg3xVoRAlEbAJ9Jnb0vgqEVpACikfSR4F1yw0Ou1ACfYbUO 5n0Jxo/4PnzJddwVTDSRqo0= =SbL9 -----END PGP SIGNATURE----- --=-oYhCqOpdtN2X/Q3I7OFk--