aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/build/linux_linux.go
Commit message (Collapse)AuthorAgeFilesLines
* all: use special placeholder for errorsTaras Madan2023-07-241-7/+7
|
* all: ioutil is deprecated in go1.19 (#3718)Taras Madan2023-02-231-2/+1
|
* pkg/build: refactor cuttlefish image code to embedFiles()Kris Alder2022-05-061-1/+12
| | | | | | Since most of the image mounting code is duplicated, we can instead extract it to an embedFiles() function that takes a callback. The Linux- or Android-specific code can be in the callback.
* pkg/build: mount /etc before copying the sysctl fileAleksandr Nogikh2022-04-111-1/+17
| | | | | Assume that /etc can be on a partition different from the one, where the kernel resides.
* pkg/build: detect fs type automatically in embedLinuxKernel()Aleksandr Nogikh2022-04-081-1/+17
| | | | | Now it's assumed to always be ext4, which is actually not always the case. Try to mount ext4, then try vfat.
* pkg/build: support compressed arm64 kernelsAleksandr Nogikh2022-04-061-1/+1
| | | | | Presently Linux doesn't support bzImage/zImage for arm64, but at least we can use Image.gz.
* pkg/build: support linux kernel in more locationsDmitry Vyukov2021-10-131-1/+13
| | | | Support all of /vmlinuz, /bzImage, /boot/vmlinuz, boot/bzImage.
* all: remove pointers to pkg.build.ParamsAleksandr Nogikh2021-07-201-1/+1
| | | | | | | | | | The struct pkg.build.Params is currently primarily passed on as a pointer, which leads make it hard to see the places, where it can (and should) actually be modified. Make it all more explicit by only passing pointer references to objects of this type when the object is expected to be modified by the function. In fact, at this moment there are no such situations.
* pkg/build: extend error messageDmitry Vyukov2021-01-291-1/+1
|
* pkg/build: add a new way of building linux imagesDmitry Vyukov2021-01-291-0/+104
Add a new, simpler procedure: working bootable image is accepted as an input and we only replace the kernel in it. This just looks much saner and the right way to do it (instead of assembling the image from bits and shelling out to mkfs, fdisk, grub, etc). The new way also works inside of containers much better.