public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
* Uses sudo in elkscmd/Makefile
@ 2004-06-03 18:41 Tommy McCabe
  2004-06-04 15:24 ` ** Applied ** " Miguel Bolanos
  0 siblings, 1 reply; 2+ messages in thread
From: Tommy McCabe @ 2004-06-03 18:41 UTC (permalink / raw)
  To: linux-8086

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

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).


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: makesudo.diff --]
[-- Type: text/x-diff; name="makesudo.diff", Size: 2524 bytes --]

--- ./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 @@
 
 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)
 
 mount_full3fs: $(FULL3_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(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)
 
 mount_full5fs: $(FULL5_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
 	$(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)
 
 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)
 
 mount_rootnetfs: $(ROOT_NET_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/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)
 	
 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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* ** Applied ** Re: Uses sudo in elkscmd/Makefile
  2004-06-03 18:41 Uses sudo in elkscmd/Makefile Tommy McCabe
@ 2004-06-04 15:24 ` Miguel Bolanos
  0 siblings, 0 replies; 2+ messages in thread
From: Miguel Bolanos @ 2004-06-04 15:24 UTC (permalink / raw)
  To: Tommy McCabe; +Cc: linux-8086

[-- Attachment #1: Type: text/plain, Size: 3635 bytes --]

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).
> 
> 
> 	
> 		
> __________________________________
> Do you Yahoo!?
> Friends.  Fun.  Try the all-new Yahoo! Messenger.
> http://messenger.yahoo.com/
> 
> ______________________________________________________________________
> --- ./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 @@
>  
>  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)
>  
>  mount_full3fs: $(FULL3_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
>  	$(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)
>  
>  mount_full5fs: $(FULL5_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/issue
>  	$(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)
>  
>  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)
>  
>  mount_rootnetfs: $(ROOT_NET_TARGET_FS) $(ELKSCMD_DIR)/rootfs_template/etc/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)
>  	
>  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)
-- 
--------------------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
--------------------------------------------------------------------

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-06-04 15:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-03 18:41 Uses sudo in elkscmd/Makefile Tommy McCabe
2004-06-04 15:24 ` ** Applied ** " Miguel Bolanos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox