Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NotificationsYou must be signed in to change notification settings

coolcoder613eb/OneFileLinux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

One File Linux

Live linux distro combined in one EFI file.

Download herehttps://github.com/zhovner/OneFileLinux/releases

More information in russianhttps://habrahabr.ru/post/349758/

Install on Mac

1. Mount EFI System Partition

diskutil mount disk_NUMBER

To find out EFI partition disk number usediskutil 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 runbless 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

Thinkpad x220 boot menu

Building

This project is based on vanilla linux kernel4.16-rc1
and Alpine Linux Minimal root filesystemhttps://alpinelinux.org/downloads/

Download kernel

https://git.kernel.org/torvalds/t/linux-4.16-rc1.tar.gz and extract it tolinux-4.16-rc1
This repository contatinslinux-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 withapk packet manager.

Build

Run bulding script

./build.sh

About

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

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C97.9%
  • Assembly1.5%
  • Makefile0.3%
  • Perl0.1%
  • Shell0.1%
  • Python0.1%

[8]ページ先頭

©2009-2025 Movatter.jp