aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'reducedro' into reducedro_zfsSven Gothel2021-07-228-18/+208
|\
| * Update config scripts (remove 'Jau' and add most simple 'light' target configs)Sven Gothel2021-07-225-3/+97
| |
| * make_bootable_image: Mutable images require UUID in fstab and kernel cmdline ↵Sven Gothel2021-07-221-15/+16
| | | | | | | | | | | | for raspi Hence also fix BOOT_FSTYPE on fstab for mutable images (remount ro -> rw).
| * Add lightxdev (mutable images) config files for debian-amd64Sven Gothel2021-07-222-0/+95
| |
* | Merge branch 'reducedro' into reducedro_zfsSven Gothel2021-07-223-8/+33
|\|
| * Refine boot process of build target and allow config of /boot fstype and ↵Sven Gothel2021-07-223-8/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | mount-options - Add env-vars BOOT_FSTYPE and BOOT_FSOPTIONS, supporting customizing the boot filesystem type and options - FAT_CODEPAGE (if using BOOT_FSTYPE vfat, default) is hardcoded '437' - Add 'lsof', allowing to check open listening ports (besides netstat) - On Raspi: Use plymouth splash screen for all configurations, theme 'pix' - Add systemd resize2fs_once.service to have it start very early to resize the rootfs partition for RW rootfs - No kernel argument 'rootwait' for initramfs/grub root=file boot loop_rootfs (initram): - kill spawn-off pipe copy process (LOOP_ROOTFS_LOG_PIDS) - Use BOOT_FSTYPE, BOOT_FSOPTIONS (incl mounting /boot).. - Use dedicated fsck.BOOT_FSTYPE if possible (and quiet) - Log fsck and mount attempts, failure and success - Stage2 01-sys-tweaks fixes: - Only disable systemd-remount-fs for ROOTFS_RO - Only generate /boot/loop_rootfs.id for ROOTFS_RO - Kernel Modules: Add codepage 437 and 850, drm and vc4 (raspi only) - Use TARGET_ARCH in all situations - On RW rootfs, grub-install with ext2 module -
* | Add stage_rescuezfs, adding prepared zfs-linux-2.0.5-1 debian10 and debian11 ↵Sven Gothel2021-07-182-0/+96
|/ | | | | | | packages stage_rescuezfs should be run ontop of stage_rescue, see scripts/04-build-debian_amd64-ro-rescuezfs.cfg
* Fix stage3b (split to stage3b_lxde and stage3b_kde alternatives); Misc changes:Sven Gothel2021-07-185-26/+22
| | | | | - GRUB image rename to declare architecture: data/grub-image01.bin -> data/grub-i386-image01.bin - scripts/make_dualboot_image.sh: Let user chose denomination, i.e. G for GiB or M for MiB
* Custom personal build config 02 + 03: Only produce stage2 (developer test)Sven Gothel2021-07-182-1/+3
| | | | | | | | | | | Goal reached: stage2 produced for raspi-arm64 + debian-amd64 merged into one 'dual-2GiB-01.img' using 'loop_rootfs' were bootable on - raspi4 - qemu amd64 - Intel NUK amd64 i6 w/ EFI (vfat) and other partitions The 2G test image was created using scripts/make_dualboot_image.sh
* multi-arch/boot: Handle GRUB boot-code images, showcase full feature via ↵Sven Gothel2021-07-183-0/+179
| | | | | | | | | | | | | | | | | | | | | | | | | 'make_dualboot_image' 'make_dualboot_image' creates a new raw image file: - creating one vfat partition covering whole size - formating partition with vfat - provision GRUB boot-code (expecting 'grub' folder on vfat partition) - copy custom files to vfat partition using image file handling via NBD (updated imagetool.sh). The custom files are sourced from two sdcard diskimages folder generated with our pi-gen branch: - raspi arm64 - debian amd64 Simply copied both content into one merge folder, passed as last argument 'provisioning-dir' to this script. +++ Grub file handling takes care of both boot-code image locations, 446 bytes in MBR and the MBR gap from [512 bytes - partition-start[
* Bump example config files .. (hostname matched project, version)Sven Gothel2021-07-186-12/+12
|
* Use $BASH_SOURCE[0] instead of $0Sven Gothel2021-07-181-1/+1
|
* Enhance NBD/Image handling via imagetool.sh (use reusable stateless ↵Sven Gothel2021-07-182-32/+303
| | | | | | | | | | functions from new lib_nbd_img_handling) imagetool.sh - new connect* and disconnect - mount/umount stateless, multiple usage - lib_nbd_img_handling used as base implementation for qcow2_handling and imagetool.sh
* Remove obsolete tagging scripts to SKIP stages and image creationSven Gothel2021-07-182-54/+0
|
* multi-arch: Support vanilla Debian for 'amd64' and 'i386' architecture incl. ↵Sven Gothel2021-07-1710-43/+287
| | | | | | | | | | | | | | | | | | | | | | | 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.
* qcow2_handling: Use fixed PART_NO (at least a variable)Sven Gothel2021-07-091-2/+3
|
* scripts/qcow2_handling: Reactivate partition resizing (Fix PART_START grep ↵Sven Gothel2021-07-091-7/+6
| | | | for 2nd parition)
* scripts/chroot-example.sh: Adding example how to use the qcow2 image chroot ↵Sven Gothel2021-07-091-0/+24
| | | | for custom tasks
* Add stage3a_dev: Image '-litexdev', developer system on top of stage3a; ↵Sven Gothel2021-07-093-2/+9
| | | | Cleaned README.md
* build example rw rootfs: Don't use REDUCED_FOOTPRINT for writable rootfs ↵Sven Gothel2021-07-091-1/+1
| | | | (expect default man and /usr/share)
* bullseye: scripts/0[12]-build*: Move to 'bullseye'Sven Gothel2021-07-092-4/+4
|
* skip/unskip: Add stage3[ab] SKIP_IMAGESSven Gothel2021-07-092-0/+4
|
* qcow2_handling mkfs.ext4: Reenable dropping 'huge_file' feature and ↵Sven Gothel2021-07-091-3/+3
| | | | 'has_journal' for writable image
* Fix he build scripts (generic), no APT_PROXY by default (personal anyways) ↵Sven Gothel2021-07-092-4/+4
| | | | .. etc
* Enable EXPORT_IMAGE for stage3a '-litex', useful for basic xorg no-desktop ↵Sven Gothel2021-07-092-0/+53
| | | | | | initial writable rootfs Adding/renaming build scripts accordingly
* None ROOTFS_RO: Only use 250 MiB vfat boot parition (as in arm64 branch)Sven Gothel2021-07-081-2/+13
|
* mkfs.ext4: Only set reserved-blocks-percentage to zero if ROOTFS_RO is setSven Gothel2021-07-081-1/+5
|
* install-deps: Add fatattrSven Gothel2021-07-061-1/+1
|
* 01-build.sh: Use CUSTOM_NAME for IMG_NAME and WORK_DIRSven Gothel2021-07-041-3/+5
|
* Add CUSTOM_NAME and CUSTOM_VERSION for print_issue(); Add simple ↵Sven Gothel2021-07-043-1/+55
| | | | | | | | install-dependencies and build script for convenience. Also - Drop brand 'Zafena', 'ZAFENA' for this generic branch. - Add EXPORT_IMAGE for stage3b with IMG_SUFFIX="-smalldesk"
* scripts: Add convenient scripts to skip or unskip all stagesSven Gothel2021-07-042-0/+44
|
* Fix qcow2_handling make_boot*: cmdline.txt is below sys_arm64_000Sven Gothel2021-07-041-2/+2
|
* qemu-debootstrap is deprecated, using debootstrap directlySven Gothel2021-07-041-3/+5
|
* ROOTFS_RO: export_image: Cleanup and consider read-only or mutable rootfs...Sven Gothel2021-07-041-9/+3
| | | | | Also move the `/data/sdcard` copy of '/boot' to stage2 and custom stages, only used in ROOTFS_RO.
* qcow2_handling: Drop 3rd partition for 2nd rootfs; Now we are back to size ↵Sven Gothel2021-07-041-36/+30
| | | | | | the 2nd partition using remainder of QCOW2_SIZE For rootfs read-only mode, we give a zero extra percentage for user root.
* apt install package* file: Remove leading space, fix for all comments empty ↵Sven Gothel2021-07-021-0/+1
| | | | package file
* chroot: use UTF8 and set LC_*Sven Gothel2021-07-021-0/+6
|
* ro: drop data partition; Use /dev/mmcblk0p[12] for generic deployment ↵Sven Gothel2021-07-021-38/+34
| | | | (export-image, make_bootable); Add 'sdcard' folder in DEPLOY_DIR
* qcow2_handling: Add more robustness, make imagetool.sh more usable (add ↵Sven Gothel2021-07-011-4/+56
| | | | raw-image) and don't set NBD_DEV (bugfix)
* ro: Adapt new 15200 MiB for 16GB sdcard layout, store raw rootfs image with ↵Sven Gothel2021-06-281-17/+31
| | | | rootfs size only (on bigger partition)
* Zafena: Branding of 'etc/rpi-issue` ; Add 'Zafena version'Sven Gothel2021-06-281-1/+2
|
* Refine '/etc/rpi-issue' file: Use full UTC date and list all packages etc ↵Sven Gothel2021-06-281-3/+20
| | | | (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-0/+44
| | | | | | | | 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-51/+79
| | | | | | | | | | | (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
* ro: Inject overlayfs, using DATADEV '/data' partition as 'upper'; Disable ↵Sven Gothel2021-06-261-0/+1
| | | | | | | | | | | | rootfs resize @ init (1st boot) /etc/fstab didn't work to mount the overlayfs (boot freeze due to some dependencies). Hence we use our own 'overlay_mount.service' Before 'local_fs.target', which mounts '/data' and its overlays. We also disable rootfs resize @ init (1st boot), since the rootfs is immutable from here on.
* ro: new partition layout: 1 boot, 2 data, 3 rootfs (ro)Sven Gothel2021-06-261-7/+28
|
* Merge remote-tracking branch 'upstream/master' into arm64arm64Serge Schneider2021-06-221-2/+4
|\
| * Copy debootstrap.log on failureSerge Schneider2021-06-221-2/+4
| |
* | Merge branch 'master' into arm64Serge Schneider2021-03-041-0/+256
|\|
| * Add QCOW2 build mechanism (#349)Holger Pandel2021-02-101-0/+256
| |