-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Copying failed when /opt symlinked #142
Comments
I don't really see what the issue is. Copying to a symlinked directory should be fine.
show? |
Error message is similiar to this: ls -ld opt data/opt/ |
Can you edit /usr/bin/rpi-update and in download_rev change:
to
and run:
|
got this error: |
@biji is this still an issue? |
It is for me, just ran sudo rpi-update on a Raspbian 7 install which was just updated. Just renamed /opt temporarily and mkdir /opt and ran again. |
@biji, @billchurch can you provide a step by step procedure to reproduce this issue? |
1 similar comment
@biji, @billchurch can you provide a step by step procedure to reproduce this issue? |
@popcornmix any suggestions? |
@popcornmix This demonstrates the issue: $ cd $(mktemp -d)
$ mkdir -p src/foo dest/bar
$ touch src/foo/test
$ cd dest
$ ln -s bar foo
$ cd ..
$ tree
.
├── dest
│ ├── bar
│ └── foo -> bar
└── src
└── foo
└── test
5 directories, 1 file
$ cp -R src/* dest/
cp: cannot overwrite non-directory ‘dest/foo’ with directory ‘src/foo’
$ tree
.
├── dest
│ ├── bar
│ └── foo -> bar
└── src
└── foo
└── test
5 directories, 1 file
$ rsync -rvK src/* dest/
sending incremental file list
foo/test
sent 112 bytes received 36 bytes 296.00 bytes/sec
total size is 0 speedup is 0.00
$ tree
.
├── dest
│ ├── bar
│ │ └── test
│ └── foo -> bar
└── src
└── foo
└── test
5 directories, 2 files However this is such an edge-case I'm not sure it warrants switching all usages of |
This is still open... Really easy to reproduce, just copy your /opt into a different location and then create a symlink /opt to that location. |
My /opt symlinked to /data/opt
When running rpi-update, always failed copying vc to /opt
Maybe better using rsync -rv -K ?
The text was updated successfully, but these errors were encountered: