Commit Graph

99 Commits

Author SHA1 Message Date
oxmc 07b8db1a74 Trixie base 2025-12-26 02:48:07 -08:00
oxmc 468ddd3807 Stable OS release with recovery partition 2025-05-13 06:36:48 -07:00
oxmc cac89696cc Fix rootfs issue 2025-04-29 00:01:36 -07:00
oxmc fcab0c9c55 Test 2025-04-28 13:32:56 -07:00
oxmc a8f91e1c53 change align size 2025-04-28 13:28:07 -07:00
oxmc f34889a405 debugging 2025-04-28 13:15:39 -07:00
oxmc b5ccc3d937 fix maybe? 2025-04-28 13:10:51 -07:00
oxmc ea16e34aa7 idfk 2025-04-28 12:57:50 -07:00
oxmc ab106ee155 Fiexs, and branch rename 2025-04-28 12:43:11 -07:00
oxmc 19c43a6ca7 Fix boot issue 2025-04-28 12:08:37 -07:00
oxmc c89425c3ee Fix mistake 2025-04-27 19:01:45 -07:00
oxmc 33d3efc43d Remove recovery partition 2025-04-26 16:43:57 -07:00
oxmc cfd3cb2c23 idfk 2025-04-26 16:32:50 -07:00
oxmc 1258d4b949 Fix ext4 2025-04-26 16:24:00 -07:00
oxmc 23114d61e2 test new part 2025-04-26 16:20:06 -07:00
oxmc f9327e82ae Attempt to fix resize 2025-04-25 20:30:37 -07:00
oxmc eba60e9c9f ARM64, Change files 2025-04-24 03:08:02 -07:00
oxmc 39e1107a77 Fixes? 2025-04-24 01:40:34 -07:00
oxmc 2f29bd14cc fix iso- maybe?? 2025-04-23 05:09:23 -07:00
oxmc 0a607dc211 adjust iso 2025-04-23 04:40:12 -07:00
oxmc b35f58abb8 Adjust iso 2025-04-23 04:24:06 -07:00
oxmc d4fb8f501d exclude rpi files #1 2025-04-23 04:01:22 -07:00
oxmc 78d95ecb9c Fix iso 2025-04-23 03:58:15 -07:00
oxmc 374c3ff1a8 Recovery and AMD64 builds? 2025-04-22 18:29:27 -07:00
oxmc 0b25510108 First full build 2025-03-24 16:35:33 -07:00
oxmc c66784a6a0 First Stable OS 2025-03-21 10:25:29 -07:00
Serge Schneider fba95332df Build initial initramfs with 'most' modules, then change the setting to 'dep' 2024-10-31 16:20:18 +00:00
Serge Schneider 21e8e54d22 export-image: generate sbom file if syft is available 2024-10-28 14:58:23 +00:00
Pev d790fed832 Compare mount output using base of dirname (#771)
* Compare mount output using base of dirname

If you're building from a bind-mounted directory, the build will
fail as it will find two entries to unmount, but a single unmount
will remove them both causing an error. Adding a space means that
the mountpoint will only match with a single mount entry ; the
expected path, rather than the pre bind-mount.

* Switch to awk instead of mount, grep, cut pipes

Retry unmount 5 times and give up, letting the user know that they need to resolve the issue manually

---------

Co-authored-by: David Peverley <pev@analogue-micro.com>
Co-authored-by: Serge Schneider <serge@raspberrypi.com>
2024-05-15 15:45:43 +01:00
Serge Schneider f1c166a283 export-image: run du with -x to avoid crossing filesystem boundaries
Fixes #537
2024-04-29 14:37:36 +01:00
Serge Schneider 3b5e214f5e export-image: format boot partition with appropriate FAT size 2024-03-13 18:16:30 +00:00
Mark Spatz 502e5fa0e3 Remove QCOW2 build mechanism (#648) 2024-02-23 04:19:10 +00:00
Serge Schneider c20ce09fac export-image: make sure initramfs is created
Fixes #749
2024-01-30 14:43:17 +00:00
Vasilis Tsiligiannis 1377e903b8 Ensure loop device partition nodes are created (#741)
Although the loop block device is created before attaching the image
to it, the devices for the partition that the image contains are still
not created. This patch creates those devices as well, when they are
not already available.

Fixes #482

Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr>
2024-01-04 11:05:51 +00:00
Serge Schneider ae81834945 export-image: Add issue.txt symlink 2023-11-29 01:32:10 +00:00
Serge Schneider c856800c72 Switch to new kernel and firmware packages 2023-09-25 15:04:19 +01:00
Serge Schneider 4a4a66ed36 export-image: auto-remove and purge packages on dist-upgrade 2023-09-25 15:04:19 +01:00
bamartin125 446f3e34c8 Adds call to mknod if loop dev does not exist after call to losetup -f (#483) 2023-08-17 16:24:47 +01:00
Serge Schneider 5d2c6f31ce export-image: change boot partition lable to 'bootfs'
Fixes #669
2023-02-14 15:09:57 +00:00
rfc6919 1d13a292a7 use a single partitioned loop device (#641) 2022-11-11 08:56:04 +00:00
Serge Schneider 6a61be9295 Disable first run wizard if DISABLE_FIRST_BOOT_USER_RENAME is set 2022-09-22 13:06:38 +01:00
Serge Schneider 00da85177c Adjust partition formatting and mount options
Format the root partition with the metadata_csum option

Format the boot partition with 4 sectors per cluster for a slight performance boost

Remove 'flush' mount option from the boot partition
2022-06-17 15:48:27 +01:00
Romain Bazile 01b2432007 Create a DISABLE_FIRST_BOOT_USER_RENAME flag to be set in config (#618)
Closes #614
2022-06-17 15:45:08 +01:00
Serge Schneider b0316ae870 Enable userconf-pi on first boot 2022-03-21 08:37:25 +00:00
Romain Bazile 5d044ba71b Addition of a DEPLOY_COMPRESSION option to the configuration (#592) 2022-03-01 16:23:42 +00:00
Holger Pandel bf8c9f5383 Add QCOW2 build mechanism (#349) 2021-02-10 10:37:15 +00:00
Serge Schneider 0f59f0085a export-image: get apt lists from public repo 2020-11-17 15:22:12 +00:00
kdoren d1596451b9 workaround build failure on AWS M6g instances (#449) 2020-09-23 19:54:37 +01:00
Serge Schneider 0a6624b26d Update ROOT_MARGIN 2020-01-24 12:48:57 +00:00
Matthijs Kooijman 99f702f0ff Use parted for partitioning (#285)
Previously, fdisk was used by sending commands into its stdin, which is
not very robust (since it heavily relies on the interactive prompts
offered by fdisk as well as the default values it offers, which seem
prone to changing in future version).

It seems likely that in the past, fdisk was easier than parted since it
provides default values that make it easier to create adjacent
partitions, without precalculating all positions in the script. However
now that partitions are manually being aligned, all data must be
calculated anyway.

This commit changes the partition generation to use parted rather than
fdisk. For this, it rewrites various calculations and renames variables
to be easier to read as well. All values are now in number of bytes,
rather than mixing bytes and sectors.

This commit also makes makes sure that the boot partition and root
partition are always adjacent (previously the root partition was aligned
without also rounding the boot partition size, leaving some empty space
in between).

As a side effect of using parted, this also causes the "bootcode" part
of the MBR to be filled with some default x86 bootcode. This is totally
irrelevant for booting the Raspberry Pi, but it does prevent triggering
a bug in parted. When using parted to change the partition table (e.g.
when resizing the root partition on first boot by raspi-config's
init_resize.sh), the disk identifier would be changed due to this bug,
which would change the PARTUUID of all partitions. The init_resize.sh
script would work around this by updating the PARTUUID in e.g. fstab,
but that's fragile at best.  This commit prevents the bug from
triggering and keeps the disk identifier the same.

See https://debbugs.gnu.org/35714 for details about this parted bug.

This commit fixes #284.
2019-09-25 13:46:38 +01:00