News for hackers. Stuff that matters.
Re:Alpine Linux 3.9.0 Released by hestefisk on Wednesday January 30, 2019 @04:47AM (#19033822)
From the web site: “ container requires no more than 8 MB and a minimal installation to disk requires around 130 MB of storage. Not only do you get a fully-fledged Linux environment but a large selection of packages from the repository.”

I remember in 1997 when I could boot Linux off a 1.44MB floppy and get a fully a fully functioning Linux environment even with network support in a blitz. If 130MB is considered “lean”, what happened to our Unix principles of minimalism and clean design?

Re:Alpine Linux 3.9.0 Released by genghizkhan on Wednesday January 30, 2019 @05:00AM (#19033885)
They bumped up against modern considerations of plug-n-play. You'll see that it's the kernel which makes up most of it, the rest of it is quite small. If you wish to compile a kernel for your own hardware, you can slim that down by a _huge_ amount. I've managed to go from around 130 mb -> 25 on one machine.
Re:Alpine Linux 3.9.0 Released by swiley on Wednesday January 30, 2019 @05:53AM (#19034102)
There’s a lot of neat stuff you can do if you build your own kernel.

On my old laptop I had a small EFI partition with a 30MB “linux.efi” kernel. The initramfs that was included had busybox, wpa_supplicant, elinks, and gcc5. The idea being I could totally switch OSes without having to make bootdisks or worry about having an unbootable computer. You can staticly link all the modules and firmware too which is convenient IMHO.

Re:Alpine Linux 3.9.0 Released by tyingq on Wednesday January 30, 2019 @07:08AM (#19034411)
Openwrt still fits on routers with 4mb of rom space because of this approach. The x86 flavor, for example, doesn't have keyboard and mouse drivers by default.
Re:Alpine Linux 3.9.0 Released by pstch on Wednesday January 30, 2019 @09:22AM (#19035209)
It allows me to boot my kernel and initramfs directly from the SPI flash chip that stores my laptop's BIOS (coreboot), which is very useful.

My goal is to decrypt my disk from code stored on the motherboard (and physically write-protected) but I'm not there yet because fitting everything on 7.6MB is not easy. I may try using a bigger chip, or use the SPI-kernel to check the signatures of decryption code stored on the HDD.

Re:Alpine Linux 3.9.0 Released by bri3d on Wednesday January 30, 2019 @01:29PM (#19037761)
Why not just go the more conventional approach of having a small stage-0 non-Linux loader stored in ROM which can validate an entire kernel stored on disk? If your goals are solely around trusted boot chain it makes more sense to keep the trust root (initial bootloader and verification) as small and possible to audit as possible, right? Even the Linux kernel seems like a pretty big attack surface to keep in ROM
Re:Alpine Linux 3.9.0 Released by jcelerier on Wednesday January 30, 2019 @06:18AM (#19034209)
> I remember in 1997 when I could boot Linux off a 1.44MB floppy

but in 1997 every pointer was half the size it is today, and there were 1/1000th the number of device drivers that exist today.

Re:Alpine Linux 3.9.0 Released by tyingq on Wednesday January 30, 2019 @07:18AM (#19034454)
> I remember in 1997 when I could boot Linux off a 1.44MB floppy

I installed slackware in the early 90's. The kernel was on one floppy, then the barest rootfs was on a 2nd and 3rd floppy. I believe the whole install spanned 13 1.44MB floppies. That's not so different from say, current day Openwrt in overall size, which can still fit into 4MB of ROM if needed.

Re:Alpine Linux 3.9.0 Released by Diederich on Wednesday January 30, 2019 @12:35PM (#19037225)
Remember the letter groups? A, AP, N for networking, X for basic X11. (:

Good times.

Re:Alpine Linux 3.9.0 Released by hestefisk on Wednesday January 30, 2019 @03:24PM (#19039046)
Ah yes, Slackware disk sets. I actually got the installer on a CD-ROM from Walnut Creek but had to resort to floppies because Slack didn’t recognise my optical drive (those days it was attached via an ISA mounted sound blaster card, not on the motherboard itself!). The distro I was referring to above was LOAF (and tomsrbt), Linux On A Floppy.
Re:Alpine Linux 3.9.0 Released by agumonkey on Wednesday January 30, 2019 @05:19AM (#19033955)
Let's get realistic, 130MB is in the lowest for ~modern linux. I'd love to have 1.44MB OS too, deeply, but 8-130 is lean for 2010s standards
Re:Alpine Linux 3.9.0 Released by fb03 on Wednesday January 30, 2019 @05:54AM (#19034107)
Couldn't agree more.

Let's not forget we now have "native apps" which are actually web browsers packed with a full node.js instance and a local database, eating up several hundred megs of space for seemingly trivial tasks.

Re:Alpine Linux 3.9.0 Released by SmellyGeekBoy on Wednesday January 30, 2019 @05:22AM (#19033966)
Most webpages are bigger than 1.44MB these days... I'm talking individual pages here. Though I'm not entirely sure that this is a good thing.
Re:Alpine Linux 3.9.0 Released by agumonkey on Wednesday January 30, 2019 @06:10AM (#19034174)
yeah, I want vintage core memory sized 4kB webpages
Re:Alpine Linux 3.9.0 Released by throwaway2048 on Wednesday January 30, 2019 @06:54AM (#19034357)
OpenBSD's installer fits on a 1.44MB floppy, and that includes network connectivity.
Re:Alpine Linux 3.9.0 Released by zaarn on Wednesday January 30, 2019 @07:01AM (#19034380)
Do those 1.44MB include userspace similar to what alpine has and all of the linux drivers that alpine covers? Or are they downloaded via the internet?
Re:Alpine Linux 3.9.0 Released by wibble10 on Wednesday January 30, 2019 @10:52AM (#19036032)
miniroot.fs is >4mb for 6.4 last time I checked...
Re:Alpine Linux 3.9.0 Released by throwaway2048 on Wednesday January 30, 2019 @10:52AM (#19036042)
there are multiple install options, floppy64.fs is 1.4MB
Re:Alpine Linux 3.9.0 Released by tech2 on Wednesday January 30, 2019 @01:33PM (#19037798)
Did you ever use the QNX demo-disk? A bootable Unix-like with GUI on a single 1.44MB floppy. I agree it's unrealistic these days, but it was an impressive statement-piece.
Re:Alpine Linux 3.9.0 Released by agumonkey on Wednesday January 30, 2019 @02:33PM (#19038453)
Always wanted to try these. I think it's possible to fetch an image online.
Re:Alpine Linux 3.9.0 Released by jonah-archive on Thursday January 31, 2019 @12:13PM (#19046428)
The mouse isn't working properly, but you can emulate it in your browser (or grab the image) here: https://archive.org/details/qnxdemo_modem_v4
Re:Alpine Linux 3.9.0 Released by elcomet on Wednesday January 30, 2019 @04:53AM (#19033855)
It would be interesting to see a tree map of the sizes in Linux, like how big are the drivers, the network stack, ...

Maybe 99% of those 130Mb are the drivers, a lot were added to the kernel since 1997 I guess

Re:Alpine Linux 3.9.0 Released by maxmouchet on Wednesday January 30, 2019 @04:59AM (#19033878)
Indeed, according to [1] a bit more than half of the Linux source is the drivers. But I don't know if those proportions still holds after compilation.

[1] https://unix.stackexchange.com/a/223753

Re:Alpine Linux 3.9.0 Released by wener on Wednesday January 30, 2019 @05:20AM (#19033957)
The size is mostly caused by firmware.If you run in VM,like qemu,the size can be way smaller.
Re:Alpine Linux 3.9.0 Released by rmu09 on Wednesday January 30, 2019 @07:19AM (#19034459)
I remember that even in 1997 you needed one boot-disk containing the kernel, somewhat taylored to your system (SCSI/non-SCSI, networking) already because of space constraints, and a root-disk, and the running system was pretty minimal.
Re:Alpine Linux 3.9.0 Released by mises on Wednesday January 30, 2019 @11:48AM (#19036693)
I'm running a normal installation; the largest package (nearly 500MB) is linux-vanilla. The included drivers are mostly what are hogging space. This goes back to the whole plug-and-play another person mentioned; there are a lot of supported devices.
Re:Alpine Linux 3.9.0 Released by tlamponi on Wednesday January 30, 2019 @05:55AM (#19034115)
I used it in containers (LXC through Proxmox VE) and my base install with "functioning Linux environment even with network support in a blitz" comes around 8MB, as the kernel comes from the host I simply save on that end. Works very well.
Re:Alpine Linux 3.9.0 Released by mhd on Wednesday January 30, 2019 @05:51AM (#19034095)
Kernel size and 64 bit code, and it's not like the rescue floppies didn't use some tricks, either.

It never got on the level of the famous QNX demo disk.

Re:Alpine Linux 3.9.0 Released by Medox on Wednesday January 30, 2019 @05:14AM (#19033935)
There's always TinyCore Linux.
Re:Alpine Linux 3.9.0 Released by blueflow on Wednesday January 30, 2019 @06:01AM (#19034133)
Most of the size is caused by the Linux kernel and the firmware, so recommending another Linux Distribution wont help here.
Re:Alpine Linux 3.9.0 Released by peterwwillis on Wednesday January 30, 2019 @08:37AM (#19034881)
Depends on the distro. Changing compilers or compiler flags and any dependent base libraries has a big impact on kernel size, and distros can tune kernel configs for size.

Fitting Linux on a floppy back in the day was about 80% tuning the kernel, and then playing with BusyBox size and finally things like compression or even repacking objects to align better. (It also helped if you had a floppy that could cheat it's way up to 1.68MB, a little known hack that traded reliability for space)

Re:Alpine Linux 3.9.0 Released by sevensor on Wednesday January 30, 2019 @08:54AM (#19035005)
Still only 12MB!