All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Ernberg <john.ernberg@actia.se>
To: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Badly formatted subpath for git SRC_URI deletes portions of hard drive.
Date: Thu, 16 Apr 2015 11:52:48 +0000	[thread overview]
Message-ID: <552FA28B.5010507@actia.se> (raw)

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

             reply	other threads:[~2015-04-16 11:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-16 11:52 John Ernberg [this message]
2015-04-16 12:55 ` Badly formatted subpath for git SRC_URI deletes portions of hard drive 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

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=552FA28B.5010507@actia.se \
    --to=john.ernberg@actia.se \
    --cc=yocto@yoctoproject.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 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.