All of lore.kernel.org
 help / color / mirror / Atom feed
* Badly formatted subpath for git SRC_URI deletes portions of hard drive.
@ 2015-04-16 11:52 John Ernberg
  2015-04-16 12:55 ` Paul Eggleton
  0 siblings, 1 reply; 8+ messages in thread
From: John Ernberg @ 2015-04-16 11:52 UTC (permalink / raw)
  To: yocto@yoctoproject.org

Hi

I was writing a bitbake recipe for a project hosted on a git-server. I 
applied subpath in order to limit the checkout to a specific directory.

When I ran the recipe it failed in do_fetch (or do_unpack) complaining 
about missing files. It had deleted the entire Yocto directory and 
selected directories from my home-dir like ssh-keys, my dir where I keep 
my code, and some configuration files for Thunderbird and my terminal.

Since I had no Yocto directory left I was unable to debug the recipe.

After restoring everything I re-created the recipe, this time I also 
saved a copy of the recipe at a safe location.
At the end of the path given to subpath I had added a '/' as it was not 
specified what the format of the path should be. I figured I would see 
an error if the path was wrong, and technically I did.
Essentially the SRC_URI looked like this:
SRC_URI = "git://git@<server+repo>;protocol=ssh;subpath=path/"

Running the recipe resulted in do_fetch (or do_unpack) failing again and 
complaining about missing files. This time the deletion was on a much 
greater scale, it had deleted so much of my home-dir that my user 
account was rendered entirely useless. The fastest way to recover this 
time was re-installing the machine.

I was keeping bitbake in my home-dir both of these times.

The poky version I am using is Daisy.

Best regards // John Ernberg

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

end of thread, other threads:[~2015-04-18 17:12 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-16 11:52 Badly formatted subpath for git SRC_URI deletes portions of hard drive John Ernberg
2015-04-16 12:55 ` Paul Eggleton
2015-04-16 13:11   ` Anders Darander
2015-04-16 14:25     ` Nicolas Dechesne
2015-04-16 14:35       ` Christopher Larson
2015-04-17 14:30         ` Paul Eggleton
2015-04-18 17:12           ` Anders Darander
2015-04-16 15:58     ` Paul Eggleton

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.