FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

codeIvy/OneFileLinux at connman · GitHub

Repository navigation

About

Live linux distro combined in one ~20MB file. Runs on any UEFI computer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

19 Commits

Folders and files

Repository files navigation

One File Linux

Live linux distro combined in one EFI file.

Download here https://github.com/zhovner/OneFileLinux/releases

More information in russian https://habrahabr.ru/post/349758/

Install on Mac

1. Mount EFI System Partition

diskutil mount disk_NUMBER 

To find out EFI partition disk number use diskutil list

The command is as follows in my case:

diskutil mount disk0s1

2. Copy OneFileLinux.EFI to EFI Partiotion

cp ~/Downloads/OneFileLinux.efi /Volumes/EFI

3. Set NVRAM to boot linux once

sudo bless --mount /Volumes/EFI --setBoot --nextonly --file /Volumes/EFI/OneFileLinux.efi

This command will boot linux only once. Next reboot will return previous boot sequence.

!!! Note that System Integrity Protection (SIP) prohibits to change boot options.
You can run bless from Recover Mode console. Press CMD+R while power on and go to "Utilities —> Terminal"

Install on PC

If your motherboard has UEFI Shell, just choose the path to OneFileLinux.efi on ESP.
Otherwise add new boot options to NVRAM and choose it from boot menu.

Example for ThinkPad x220

1. Copy OneFileLinux.efi to EFI Partition

2. Add NVRAM entry

efibootmgr --disk /dev/sda --part 2 --create --label "One File Linux" --loader /OneFileLinux.efi

3. Choose new entry from boot menu

Press F12 while power on and choose new boot entry

Building

This project is based on vanilla linux kernel 4.16-rc1
and Alpine Linux Minimal root filesystem https://alpinelinux.org/downloads/

Download kernel

https://git.kernel.org/torvalds/t/linux-4.16-rc1.tar.gz and extract it to linux-4.16-rc1
This repository contatins linux-4.16-rc1/.config file with kernel config.

Edit root filesystem

Chroot into root filesystem
chroot ./alpine-minirootfs /bin/ash

Edit what you need. Install packages with apk packet manager.

Build

Run bulding script

./build.sh

About

Live linux distro combined in one ~20MB file. Runs on any UEFI computer.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL