aboutsummaryrefslogtreecommitdiffstats
path: root/export-image
Commit message (Collapse)AuthorAgeFilesLines
* export-image 04-finalize: Export the ext4-rootfs partition image for mutable ↵Sven Gothel2021-07-221-10/+8
| | | | rootfs as well
* export-image finalize: ROOTFS_RO: Don't produce sdcard zip file, be a bit ↵Sven Gothel2021-07-221-5/+8
| | | | more verbode when sdcard is done
* export-image 02-network: Clean resolv.conf and do not add GOOG 8.8.8.8 NS ↵Sven Gothel2021-07-222-2/+4
| | | | (security risk)
* multi-arch: Support vanilla Debian for 'amd64' and 'i386' architecture incl. ↵Sven Gothel2021-07-171-11/+24
| | | | | | | | | | | | | | | | | | | | | | | loop_rootfs using grub (WIP) - Generic packages: nn-packages[-RELEASE] (using the optional '-RELEASE' variant) - System packages: nn-packages-sys-(raspi|debian)[-RELEASE] (using the optional '-RELEASE' variant), allow to distinguish not only for the RELEASE but the actual underlying distribution. - On debian amd64, all required usb-storage etc modules are loaded for loop_rootfs/initrd - loop_rootfs works on Raspi (Proprietary Bootloader) as well as on Debian (Grub Bootloader) - loop_rootfs uses the first vfat block-device partition for /boot - /boot will be mounted by loop_rootfs and handed over to new root-mount-point, this avoids issues of using an undefined /boot partition (but the first) - rotatelog_init_rootfs: Rotates /boot/init_rootfs.log if having more than 500 lines - FIX export-image: Copy the rootfs.img to the exported full image, which allows testing the image directly via qemu .. etc.
* export-image: Add squashfs w/ zstd-10, sadly zstd is disabled in Raspberry ↵Sven Gothel2021-07-061-3/+4
| | | | kernel
* export-image (ro): Create zip storage only archive of sdcard and SHA256SUMS ↵Sven Gothel2021-07-041-0/+7
| | | | | | over all files zip name: ${IMG_FILENAME}${IMG_SUFFIX}.sdcard.zip
* export-image: avoid double dash for sdcard-${IMG_SUFFIX}, latter contains ↵Sven Gothel2021-07-041-4/+4
| | | | '-' already
* export-image: Use ${IMG_SUFFIX} for stage owned sdcard folder: ↵Sven Gothel2021-07-041-4/+4
| | | | ${DEPLOY_DIR2}/sdcard-${IMG_SUFFIX}
* REDUCED_FOOTPRINT: Group all related tasks to this env-var setting: apt ↵Sven Gothel2021-07-041-7/+9
| | | | selection and cache, /usr/share/doc/ and most locale; See README.md
* ROOTFS_RO: export_image: Cleanup and consider read-only or mutable rootfs...Sven Gothel2021-07-041-65/+36
| | | | | Also move the `/data/sdcard` copy of '/boot' to stage2 and custom stages, only used in ROOTFS_RO.
* Create rootfs variations of squashfs and use the LZO variant as default; Use ↵Sven Gothel2021-07-041-8/+22
| | | | | | | | | | | dedicated DEPLOY_DIR subfolder for each stage... We produce squashfs variants with compression: - gzip - lzo - none Use dedicated DEPLOY_DIR subfolder for each stage due to exploded sdcard folder: ${DEPLOY_DIR}/${IMG_FILENAME}-${STAGE}
* export-image: Exclude /boot/zafena/ app data from rootfs-image (only hold ↵Sven Gothel2021-07-031-4/+6
| | | | bootable sdcard content)
* rootfs.img: Add '/data/sdcard' full copy of '/boot' ex rootfs.img to be self ↵Sven Gothel2021-07-021-0/+2
| | | | contained
* Size reduction: apt-get install always use 'Recommends 0' & 'Suggests 0', ↵Sven Gothel2021-07-021-6/+14
| | | | drop cache; dpkg: Remove doc, man, ..
* ro: drop data partition; Use /dev/mmcblk0p[12] for generic deployment ↵Sven Gothel2021-07-021-16/+29
| | | | (export-image, make_bootable); Add 'sdcard' folder in DEPLOY_DIR
* KISS: Always use qcow2, build.sh's `USE_QCOW2` only a local flag for ↵Sven Gothel2021-06-282-102/+6
| | | | EXPORT_DIRS (images) to toggle run_stage's behavior
* Refine '/etc/rpi-issue' file: Use full UTC date and list all packages etc ↵Sven Gothel2021-06-281-18/+21
| | | | (merged from `export-image/04-finalise/01-run.sh`
* ro: export the raw image of rootfs (export-image, qcow2_handling's ↵Sven Gothel2021-06-281-11/+37
| | | | | | | | make_bootable_image); Use gzip if `DEPLOY_ZIP == 1` Writing out the rootfs as a raw image, we simply use the new `connect_raw_blkdev` on the finalized raw image and dd the partition using the fs's block-size into a file.
* ro: Use sdcard layout 'Image-B' 1 boot (250MB), 2 data (1GB), 3 rootfs1 ↵Sven Gothel2021-06-281-18/+0
| | | | | | | | | | | (4GB), 4 rootfs2 (4GB); Keep full sized sdcard image. qcow2_handling: make_bootable_image() - Still resize rootfs, but keep the partition table intact for both 4GB rootfs. This keeps the scard image fully sized, but allows to mount and use all partitions. - Use `mount_rawimage` (qemu-nbd) for image mount instead of convoluted loop device
* Add QCOW2 build mechanism (#349)Holger Pandel2021-02-103-96/+108
|
* export-image: get apt lists from public repoSerge Schneider2020-11-172-1/+2
|
* workaround build failure on AWS M6g instances (#449)kdoren2020-09-231-2/+26
|
* Update ROOT_MARGINSerge Schneider2020-01-241-1/+1
|
* Use parted for partitioning (#285)Matthijs Kooijman2019-09-251-23/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Updated export-image to not depend on fake-hwclock and hardlink. (#326)Russ Kubes2019-08-271-2/+6
|
* Revert "export-image: Remove interfaces.dpkg-old"Serge Schneider2019-08-141-2/+0
| | | | This reverts commit a016561600292047971b65d034f0e6eaeadd1122.
* export-image: Remove interfaces.dpkg-oldSerge Schneider2019-08-141-0/+2
|
* Disable ld.so.preload while buildingSerge Schneider2019-06-072-0/+10
|
* export-image: remove /etc/network/interfaces.dpkg-oldSerge Schneider2019-06-071-0/+2
|
* export-image: Set /boot size to 256MBSerge Schneider2019-06-071-3/+3
|
* Remove Oracle JavaSerge Schneider2019-06-072-74/+0
|
* Update to BusterSerge Schneider2019-06-072-10/+0
| | | | Remove ui and staging components
* Do not assume the changelog file is always present for the info file (#280)Hugo Hromic2019-04-251-8/+10
| | | | | | | | | 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.
* Switch to using parted's machine parseable output (#270)Andrew Scheller2019-03-181-10/+6
|
* Use different rsync options for boot and rootSam Tygier2019-02-181-1/+2
| | | | When copying files to boot, options that are not supported on fat32 can cause errors. For example owner, group and xattrs.
* Decrease zerofree verbosityLouis Matthijssen2019-01-301-1/+1
| | | | Fixes #251
* Add a DEPLOY_ZIP settingLouis Matthijssen2019-01-301-5/+10
|
* Update 00-run.shXECDesign2019-01-231-1/+1
| | | Fix typo
* IMG_SUFFIX evaluation in export image (fix #241)Błażej Sowa2019-01-223-6/+6
|
* Fixed a hard reference to the 'pi' user namerkubes2019-01-151-2/+2
|
* Allow custom deploy zip filenameBłażej Sowa2018-12-211-2/+2
|
* Allow custom image filenameBłażej Sowa2018-12-213-4/+4
|
* export-image: clean additional backup files (#186)Hugo Hromic2018-06-041-0/+2
|
* Fix some quoted globs in export-image cleanup (#173)David Steele2018-03-261-3/+3
|
* shellcheckSerge Schneider2018-03-135-64/+65
|
* export-image: don't round up if already a multiple of 4MBSerge Schneider2018-03-011-1/+1
| | | | Fixes #156
* make root filesystem 4M aligned (#154)James Ruan2018-03-011-1/+2
|
* Remove ld.so.preload and policy-rc.d changesSerge Schneider2018-03-013-17/+0
|
* Round image size up to nearest 4M blockSerge Schneider2017-11-241-1/+2
|
* Remove /etc/vnc/updateid when finalisingAndrew Wedgbury2017-11-221-0/+1
|