ECE 440 · Week 6

Modern Computer: Full Stack

A read-only root still has to boot after power is pulled.

Week 6 of 10 · Solitude

ECE 440 · Week 6 · In class

A read-only root still has to boot after power is pulled.

ECE 440 · Week 6 · In class

A read-only root still has to boot after power is pulled. (continued)

ECE 440 · Week 6 · In class

An eleventh pull is extra.

ECE 440 · Week 6 · Lecture

Why a pull can hurt a writable root

ECE 440 · Week 6 · Lecture

Mounting root read-only

# /etc/fstab
UUID=<root-uuid>  /         ext4   ro,noatime        0 1
tmpfs             /tmp      tmpfs  mode=1777,size=64m 0 0
tmpfs             /var/tmp  tmpfs  mode=1777,size=16m 0 0

ECE 440 · Week 6 · Lecture

Proving it is read-only

findmnt -no OPTIONS /
touch /probe        # expect: Read-only file system
systemctl --failed  # units that wanted to write

ECE 440 · Week 6 · Lecture

A log that counts pulls

PullTime pulledPrompt returned?Note
1………
…………
extra……not one of the ten

Decide the failure rule before the first pull: a rule chosen afterwards fits the data.

ECE 440 · Week 6 · Lab

Lab

  1. Make the project root read-only.
  2. Pull power ten times. Record each boot. Second pass: pull power once more and mark that row as extra, not one of the ten.
  3. Assemble the lab hand-in: The mount options showing a read-only root, and a ten-row log of power pulls that still boot.

ECE 440 · Week 6 · Lab

Hand in

The mount options showing a read-only root, and a ten-row log of power pulls that still boot.

ECE 440 · Week 6 · Homework

Homework

ECE 440 · Week 6 · Homework

Turn in

The failure rule and the place you will mark it.

ECE 440 · Week 6 · Read

Read

On the lab site: Module 12, A whole system, mentions robustness. This week grades the mount options and the ten-row log.

ECE 440 · Week 6 · Next

Week 7

A bad update is installed only on spare media.

Arrow keys or space to move, F for full screen, N for speaker notes, Home and End for the first and last slide. Print gives one slide per page.