From: Tommy McCabe <rocketjet314@yahoo.com>
To: linux-8086@vger.kernel.org
Subject: Re: Cleanup patch
Date: Sat, 5 Jun 2004 10:16:09 -0700 (PDT) [thread overview]
Message-ID: <20040605171609.40951.qmail@web51309.mail.yahoo.com> (raw)
In-Reply-To: <Pine.LNX.4.58L.0406050958490.10167@damien.conectiva>
--- claudio@conectiva.com wrote:
> On Fri, 4 Jun 2004, Tommy McCabe wrote:
>
> > This patch cleans up the routines for copying
> > rootfs_template into /mnt/test, removing mention
> of rootfs_template.tar.
> >
> > mount_full3fs: $(FULL3_TARGET_FS)
> $(ELKSCMD_DIR)/rootfs_template/etc/issue
> > $(MKFS) $(MKFS_OPTS) $(FULL3_TARGET_FS)
> $(FULL3_TARGET_BLKS)
> > 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)
> > + cd $(TARGET_MNT); cp -r
> $(ELKSCMD_DIR)/rootfs_template ./
> > + ./dev/MAKEDEV
> >
>
> Copying with tar and excluding CVS is probably a
> better idea than using cp,
> so you won't have problem with symlinks or special
> files, and won't copy CVS
> metadata.
Symlinks and special file can be taken care of with
-a, or -dpR.
> Also the sudo won't help here if used only for
> mounting the device, it's
> a better idea to run the entire make with sudo
> otherwise you won't be able
> to create the device nodes and set the correct
> permissions on files.
Good point. Feel free to add sudo wherever necessary.
> Perhaps we could write a single disk image building
> target and pass parameters
> to it from the image specific targets.
>
> -
> To unsubscribe from this list: send the line
> "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at
http://vger.kernel.org/majordomo-info.html
__________________________________
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/
prev parent reply other threads:[~2004-06-05 17:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-05 1:56 Cleanup patch Tommy McCabe
2004-06-05 13:06 ` claudio
2004-06-05 17:16 ` Tommy McCabe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040605171609.40951.qmail@web51309.mail.yahoo.com \
--to=rocketjet314@yahoo.com \
--cc=linux-8086@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox