cptaffe / plan9front

Automatically exported from code.google.com/p/plan9front
0 stars 0 forks source link

inst/partdisk does parse usb device files incorrectly #76

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. install to usb disk
2. inst/start
3. during inst/partdisk see below

What is the expected output? What do you see instead?
A list of devices is shown
sd0C
/dev/sdU0.0/data # the USB stick I want to install to
/dev/sdU1.0/data # my CDROM

However it should read sdU0.0 only as this part is wrapped in 
'/dev/$device/data' later on in the script.

What version of the product are you using? On what operating system?

9front-654.b11038d5cb41.iso on a alix pc (amd geode x86)

Fix:

change the sed 's!/dev/(sd..)/data!\1!' line to 's!/dev/(sd.*)/data!\1!'

Sorry for the terse report, but the install is not complete yet or I would have 
attached a diff.

Original issue reported on code.google.com by ck...@pestilenz.org on 20 Jul 2011 at 7:20

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 20 Jul 2011 at 7:22

GoogleCodeExporter commented 9 years ago

Original comment by a...@phicode.de on 20 Jul 2011 at 7:28

GoogleCodeExporter commented 9 years ago
There are two such instances, I forgot to mention

Original comment by ck...@pestilenz.org on 20 Jul 2011 at 8:15

GoogleCodeExporter commented 9 years ago
good catch! will fix

Original comment by cinap_le...@felloff.net on 20 Jul 2011 at 11:02

GoogleCodeExporter commented 9 years ago

Original comment by cinap_le...@felloff.net on 20 Jul 2011 at 11:04