Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upExtend CDROM provider to support any common type of disk/partition with ISO format #3280
Conversation
GordonTheTurtle
added
the
status/0-triage
label
Jan 30, 2019
errordeveloper
changed the title
WIP: Extend CDROM provider to support any disk/partition with ISO format
Extend CDROM provider to support any disk/partition with ISO format
Jan 30, 2019
This comment has been minimized.
This comment has been minimized.
I've tested it with |
This comment has been minimized.
This comment has been minimized.
The diff in GH and git does not look right. Can you do a It would also be good if the commit message explains more of the rationale for this change. |
This comment has been minimized.
This comment has been minimized.
For the CLI you can control the heuristics a bit with the Making it two commits would indeed be one way to avoid the problem though. and +1 to better commit messages... |
This comment has been minimized.
This comment has been minimized.
Sounds good, will do! I have indeed use 'git mv'.
…On Wed, 30 Jan 2019, 10:45 am Ian Campbell ***@***.*** wrote:
git mv is no different to git rm && git add in terms of what is stored in
the repo, there is no specific metadata recorded about such things. The
"move" and "copy" display is entirely a presentation layer thing. IOW git
mv wouldn't help here -- it's just that the old and new files differ
enough that GH didn't guess there was a move involved while rendering the
diff.
For the CLI you can control the heuristics a bit with the -M and -C
options to git show, I suppose that isn't possible in the GH webui though.
Making it two commits would indeed be one way to avoid the problem though.
and +1 to better commit messages...
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#3280 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPWS6H_48NUd_lBorYFRVLZVLQA9oHTks5vIXe3gaJpZM4aZMe->
.
|
errordeveloper
force-pushed the
errordeveloper:metadata-iso-disk
branch
from
3027a60
to
144e5c7
Jan 30, 2019
This comment has been minimized.
This comment has been minimized.
Please sign your commits following these rules: $ git clone -b "metadata-iso-disk" git@github.com:errordeveloper/linuxkit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842353890016
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f Amending updates the existing PR. You DO NOT need to open a new one. |
GordonTheTurtle
added
the
dco/no
label
Jan 30, 2019
errordeveloper
force-pushed the
errordeveloper:metadata-iso-disk
branch
from
144e5c7
to
9bf7c99
Jan 30, 2019
GordonTheTurtle
removed
the
dco/no
label
Jan 30, 2019
This comment has been minimized.
This comment has been minimized.
I've split the commits as advised. |
errordeveloper
changed the title
Extend CDROM provider to support any disk/partition with ISO format
Extend CDROM provider to support any common type of disk/partition with ISO format
Jan 30, 2019
This comment has been minimized.
This comment has been minimized.
Thanks for the update. the diff is not much easier to read. I'm not sure I like this approach. This seems to mount/unmount all disk type devices instead of stopping when one suitable device is found. |
This comment has been minimized.
This comment has been minimized.
I thought 5c3bde1 fairly trivial...
That's just what it did before, only limited to all |
This comment has been minimized.
This comment has been minimized.
Sorry, I meant that the diff is now much easier to read. But the code is mounting every disk in the system. And only later, during probe, it goes through the providers and stops on the first suitable on. This doesn't look nice. Why not mount only during probe and stop mounting once a suitable device is found. I dn't think we want to make it more complicated with filesystem probing in whatnot, just stop mounting once you found a suitable device. |
This comment has been minimized.
This comment has been minimized.
Sure, that makes sense. Happy to adjust the behaviour that way. |
errordeveloper
force-pushed the
errordeveloper:metadata-iso-disk
branch
from
9bf7c99
to
dad8789
Feb 9, 2019
GordonTheTurtle
added
the
dco/no
label
Feb 11, 2019
errordeveloper
added some commits
Jan 30, 2019
errordeveloper
force-pushed the
errordeveloper:metadata-iso-disk
branch
from
59bbb46
to
247bdaf
Feb 11, 2019
GordonTheTurtle
removed
the
dco/no
label
Feb 11, 2019
This comment has been minimized.
This comment has been minimized.
@rn please take a look at the latest commit. |
errordeveloper
force-pushed the
errordeveloper:metadata-iso-disk
branch
from
247bdaf
to
13fc50b
Feb 11, 2019
errordeveloper
force-pushed the
errordeveloper:metadata-iso-disk
branch
from
13fc50b
to
f3a012c
Feb 12, 2019
This comment has been minimized.
This comment has been minimized.
There is a challenge with USB devices, I ended up having to do this: onboot:
- name: modprobe-usb-storage
image: linuxkit/modprobe:v0.6
command: ["modprobe", "usb-storage"]
- name: wait-usb-storage
image: linuxkit/alpine:3683c9a66cd4da40bd7d6c7da599b2dcd738b559
binds:
- /dev:/dev
command:
- sh
- -c
- until test -b /dev/sdc ; do sleep 1 ; done
- name: metadata
image: errordeveloper/metadata:9250ccfc8a4ba879989281b5f782bae2551521b9 I might find a better way, but this is what I have to do at the moment. |
errordeveloper commentedJan 30, 2019
No description provided.