Ticket #11776 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

incomplete fs-update may leave laptop bootable

Reported by: Quozl Owned by: Quozl
Priority: normal Milestone: 12.1.0
Component: build-system Version: Development build as of this date
Keywords: Cc: dsd
Action Needed: no action Verified: no
Deployments affected: Blocked By:


We have already fixed zhashfs to write the zero block last, which works well with laptops that have had nothing on their internal storage.

However, if the internal storage already contains an identical partition map, it is not cleared, and so a partial fs-update can leave the laptop bootable to some extent.

Proposed fix, olpc-os-builder:bin/zhashfs to write a zeroed zero block first.

Change History

Changed 2 years ago by Quozl

Fix committed.

Changed 2 years ago by Quozl

  • cc dsd added
  • next_action changed from code to package

Changed 2 years ago by Quozl

Fix was not in the olpc-os-builder instance used to produce 21007o2.zd.

Test case: "head -2 file.zd | grep zblock: | cut -f2 -d' '" should yield 0.

Changed 2 years ago by dsd

  • next_action changed from package to test in build

Test in 12.1.0 build 8.

Changed 2 years ago by greenfeld

  • status changed from new to closed
  • next_action changed from test in build to no action
  • resolution set to fixed

I interrupted an fs-update on a XO-1.75 with 12.1.0 os8 and the system defaulted to trying to boot off of /wlan only.

Changed 2 years ago by Quozl

And is that what we want?

Changed 2 years ago by greenfeld

That's a reasonable question (perhaps for another ticket):

Do we want to change OFW's boot path so it doesn't continue searching after the internal drive fails in this case?

We actually search for what appears to be four items if internal booting fails - "ext:\zimage /prober /usb/ethernet /wlan"

Note: See TracTickets for help on using tickets.