Skip to content

mklive.sh: running on foreign distros is broken (with static XBPS) #288

@JamiKettunen

Description

@JamiKettunen

Using static XBPS from a foreign distro such as Ubuntu or Arch causes the process to get stuck (no new output without finishing script after 20 minutes) towards the end, specifically at cp -a "$ROOTFS"/* "$BUILDDIR"/tmp-rootfs/ of generate_squashfs(); here's the full set -x script log output: https://devspace.voidlinux.org/abby/paste/mklive-foreign-log.txt

The worst part is it runs an rm -rf command if you ^C to cancel the process (which was stuck) which also starts removing all stuff possible from under the host bind-mounted /sys, /proc and /dev, after which the system practically has to be rebooted due to missing /dev/null and others, not sure if this could even wipe some efivars possibly rendering host machines unbootable... Here's a short example:

+ error_out 130
+ umount_pseudofs
+ umount -R -f .../void-mklive/tmp.peM67GOz38/image/rootfs/sys
+ umount -R -f .../void-mklive/tmp.peM67GOz38/image/rootfs/dev
+ umount -R -f .../void-mklive/tmp.peM67GOz38/image/rootfs/proc
+ [ -d .../void-mklive/tmp.peM67GOz38 -a -z  ]
+ rm -rf .../void-mklive/tmp.peM67GOz38
rm: cannot remove '.../void-mklive/tmp.peM67GOz38/image/rootfs/sys/kernel/notes': Operation not permitted
...
rm: cannot remove '.../void-mklive/tmp.peM67GOz38/image/rootfs/dev/pts/ptmx': Operation not permitted
rm: cannot remove '.../void-mklive/tmp.peM67GOz38/tmp-rootfs': Device or resource busy
+ exit 130

TODO: Check how the output differs on a Void system...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions