summaryrefslogtreecommitdiff
path: root/export-image
AgeCommit message (Collapse)Author
2020-01-24Update ROOT_MARGINSerge Schneider
2019-09-25Use parted for partitioning (#285)Matthijs Kooijman
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-08-27Updated export-image to not depend on fake-hwclock and hardlink. (#326)Russ Kubes
2019-08-14Revert "export-image: Remove interfaces.dpkg-old"Serge Schneider
This reverts commit a016561600292047971b65d034f0e6eaeadd1122.
2019-08-14export-image: Remove interfaces.dpkg-oldSerge Schneider
2019-06-07Disable ld.so.preload while buildingSerge Schneider
2019-06-07export-image: remove /etc/network/interfaces.dpkg-oldSerge Schneider
2019-06-07export-image: Set /boot size to 256MBSerge Schneider
2019-06-07Remove Oracle JavaSerge Schneider
2019-06-07Update to BusterSerge Schneider
Remove ui and staging components
2019-04-25Do not assume the changelog file is always present for the info file (#280)Hugo Hromic
The `(..)/raspberrypi-kernel/changelog.Debian.gz` file is not guaranteed to be present in the built `ROOTFS_DIR`, for example when building very minimal images without package documentation. In these cases, the `firmware` variable will be left empty and the subsequent calls to `curl` will return large 404 HTML content from GitHub. Instead, simply check if the changelog file exists before using it.
2019-03-18Switch to using parted's machine parseable output (#270)Andrew Scheller
2019-02-18Use different rsync options for boot and rootSam Tygier
When copying files to boot, options that are not supported on fat32 can cause errors. For example owner, group and xattrs.
2019-01-30Decrease zerofree verbosityLouis Matthijssen
Fixes #251
2019-01-30Add a DEPLOY_ZIP settingLouis Matthijssen
2019-01-23Update 00-run.shXECDesign
Fix typo
2019-01-22IMG_SUFFIX evaluation in export image (fix #241)Błażej Sowa
2019-01-15Fixed a hard reference to the 'pi' user namerkubes
2018-12-21Allow custom deploy zip filenameBłażej Sowa
2018-12-21Allow custom image filenameBłażej Sowa
2018-06-04export-image: clean additional backup files (#186)Hugo Hromic
2018-03-26Fix some quoted globs in export-image cleanup (#173)David Steele
2018-03-13shellcheckSerge Schneider
2018-03-01export-image: don't round up if already a multiple of 4MBSerge Schneider
Fixes #156
2018-03-01make root filesystem 4M aligned (#154)James Ruan
2018-03-01Remove ld.so.preload and policy-rc.d changesSerge Schneider
2017-11-24Round image size up to nearest 4M blockSerge Schneider
2017-11-22Remove /etc/vnc/updateid when finalisingAndrew Wedgbury
2017-11-07Fix typo in export-imageXECDesign
Fixes #132
2017-11-06Label root partitionXECDesign
Fixes #131
2017-09-14[adding] qemu emulation layout to test images with qemuJacen
2017-08-31export-image: when work in a non-English locale environment the PARTUUID ↵James Ruan
will silently fail, resulting to an unbootable image file. (#96) * use dd and xxd to get disk identifier * add xxd as dependency
2017-08-11Disable 64bit filesystem featureSerge Schneider
2017-07-28export-image: generate .info fileSerge Schneider
2017-07-28Switch to StretchSerge Schneider
2017-07-27Corrected various typos (#91)TJ Rana
* Rename License.md to LICENSE * Correct typos * Clean up code layout Organize layout with extra lines
2017-07-17Export-image: Only disable metadata_csum feature if it's possibly enabled.Russ Kubes
2017-07-03Export-image: disable metadata_csum for compatibility with older SD card copiersSerge Schneider
2017-06-21export-image: increase free space paddingSerge Schneider
2017-06-21export-image: switch from fallocate to truncateSerge Schneider
2017-06-20export-image: use apparent size when calculating disk usageSerge Schneider
2017-05-15stage4: add /etc/mtab symlinkSerge Schneider
2017-04-03Clean up clean upSerge Schneider
2017-03-07Switch to PARTUUIDSerge Schneider
2017-03-06export-image: Format /boot as FAT32Serge Schneider
2017-01-23Added Docker support (#40)Claus F. Strasburger
* Added Docker support - replaced necessity for devicemapper (through kpartx) by using parted and losetup with offsets - added Dockerfile - added dependency for parted and grep - added hints to README.md - common: loop through unmounts, fix shellcheck warnings * stage2: use debconf instead of console-setup patch. Fixes #41
2016-11-14Use capsh to ensure file capabilities aren't setSerge Schneider
2016-11-14Fix .config permissionsSerge Schneider
2016-10-09rsync single file system (#25)chz^3
If proc is mounted in rootfs (e.g., via chroot), rsync will try copying kcore when permitted to cross file system boundaries.
2016-05-19hardlink documentationSerge Schneider