I understand your goal is to create a bootable Ubuntu USB drive on macOS that also includes a shared storage partition accessible by both macOS and Linux. While macOS doesn't natively support creating a bootable USB with multiple partitions, there is a validated method to achieve this using balenaEtcher and GParted.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # syntax = docker/dockerfile:experimental | |
| FROM BASEIMAGE | |
| # Copy the hyperkube binary | |
| COPY hyperkube /hyperkube | |
| RUN --mount=type=bind,source=secrets,target=/run/secrets \ | |
| ln -s /hyperkube /apiserver \ | |
| && ln -s /hyperkube /cloud-controller-manager \ | |
| && ln -s /hyperkube /controller-manager \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| import os | |
| import argparse | |
| from pikepdf import Pdf | |
| def main(args): | |
| opdf = Pdf.open(args.odd) | |
| epdf = Pdf.open(args.even) | |
| mpdf = Pdf.new() |