Skip to content

Commit

Permalink
Merge pull request #95 from moul/fix-94
Browse files Browse the repository at this point in the history
Automatically attach nbd devices in rescue mode (fix #94)
  • Loading branch information
moul committed Oct 5, 2015
2 parents 4957eab + 0efb844 commit 8541662
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions Linux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Here are the availble *initrd variables*:
* Made the `initrd` more architecture agnostic to allow testing on Travis [#92](https://github.com/scaleway/initrd/pull/92)
* Register `xnbd-client` processes to `/run/sendsigs-omit.d/`
* Automatically attach NBD devices [#94](https://github.com/scaleway/initrd/issues/94)
### v3.3 (2015-09-07)
Expand Down
5 changes: 5 additions & 0 deletions Linux/tree-common/boot-rescue
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,9 @@ mountroot() {
emount -t tmpfs none "${rootmnt}"
run sh -ec "wget -qO- '${rescue_image}' | tar -C '${rootmnt}' -x -f -"
log_end_msg

log_begin_msg "Attaching nbd devices for easier debugging"
attach_nbd_device 0
attach_secondary_nbd_devices
log_end_msg
}

0 comments on commit 8541662

Please sign in to comment.