• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

UpdateHub / updatehub / 31383309257
67%

Build:
DEFAULT BRANCH: master
Ran 10 Aug 2026 11:28AM UTC
Jobs 1
Files 78
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Aug 2026 11:23AM UTC coverage: 65.087% (-0.9%) from 65.948%
31383309257

push

github

otavio
feat: refuse to install over a partition which is in use

Nothing stopped an update from writing over storage the running system still
had mounted. The requirements check only asked whether the target existed and
was writable, so a raw object pointed at the live rootfs was written straight
through the block device, behind the back of a filesystem which went on
serving its own page cache and writing it back over what had been installed.

Every handler reaching the storage directly is affected, and imxkobs validated
nothing at all, not even that the chips it writes to exist. The two which go
through a filesystem, copy and tarball, are fine while they only write files,
but both format the target first when asked to, and utils::fs::format passes
-F, -f or -y so the mkfs tools run unattended, which also means they will not
refuse a mounted device on their own.

ensure_not_mounted() reads /proc/self/mountinfo and rejects a target backing a
mounted filesystem. Devices are compared by number rather than by path, so the
by-uuid link, /dev/root and the device mapper name all resolve to the same
device, and sysfs extends the comparison to the storage the target shares: the
partitions a disk holds, the disk a partition belongs to, and whatever is
stacked on top through LVM, MD or loop. Sibling partitions are left out, as
writing to one does not reach the others.

UBIFS and JFFS2 mount no block device, so there is no number to compare and
mountinfo carries a name instead, as ubi0:rootfs or mtd:rootfs. Those are
rebuilt from /sys/class/mtd and /sys/class/ubi, which also covers erasing an
MTD out from under the UBI volumes attached to it.

Rather than let a handler ask for the check separately, and leave the next one
free to forget it, valid() now takes how the handler reaches its target. Every
handler already calls it, so each is made to say whether it writes the device
itself or goes through a filesystem it mounts, and the safe answer is no
longer the one you have... (continued)

74 of 170 new or added lines in 4 files covered. (43.53%)

2856 of 4388 relevant lines covered (65.09%)

1135.68 hits per line

Uncovered Changes

Lines Coverage ∆ File
53
42.52
9.83% updatehub/src/utils/fs.rs
38
4.07
4.07% updatehub/src/utils/mtd.rs
4
42.5
-1.62% updatehub/src/utils/definitions.rs
1
94.78
0.93% updatehub/src/object/installer/imxkobs.rs
Jobs
ID Job ID Ran Files Coverage
1 31383309257.1 10 Aug 2026 11:28AM UTC 78
65.09
GitHub Action Run
Source Files on build 31383309257
  • Tree
  • List 78
  • Changed 11
  • Source Changed 11
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #31383309257
  • d6c8282e on github
  • Prev Build on master (#31382355282)
  • Next Build on master (#31384435123)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc