File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22Live linux distro combined in one EFI file.
33Download here https://github.com/zhovner/OneFileLinux/releases/tag/v0.1-alpha
44
5+ More information in russian https://habrahabr.ru/post/349758/
56
67## Install on Mac
78
89### 1. Mount EFI System Partition
910```
10- mkdir /tmp/efi
11- sudo mount -t msdos /tmp/efi /dev/diskN
11+ diskutil mount disk_NUMBER
12+ ```
13+ To find out EFI partition disk number use ` diskutil list `
14+ <img src =" https://habrastorage.org/webt/_y/h2/j5/_yh2j5hz9dqthcegf5sebnmxmui.png " width =" 500 " >
15+
16+ The command is as follows in my case:
17+ ```
18+ diskutil mount disk0s1
1219```
13- To find out EFI partition disk number use * diskutil list*
1420
1521### 2. Copy OneFileLinux.EFI to EFI Partiotion
16- ` cp ~/Downloads/OneFileLinux.efi /tmp/efi/ `
22+ ` cp ~/Downloads/OneFileLinux.efi /Volumes/EFI `
1723
1824
1925### 3. Set NVRAM to boot linux once
20- ` sudo bless --mount /tmp/efi --setBoot --nextonly --file /tmp /OneFileLinux.efi `
26+ ` sudo bless --mount /Volumes/EFI --setBoot --nextonly --file /Volumes/EFI /OneFileLinux.efi `
2127
2228This command will boot linux only once. Next reboot will return previous boot sequence.
2329
@@ -60,7 +66,10 @@ Edit what you need. Install packages with `apk` packet manager.
6066
6167### Create cpio file
6268
63- ` find ./alpine-minirootfs | cpio -H newc -o > ./alpineramfs.cpio `
69+ ```
70+ cd ./alpine-minirootfs
71+ find . | cpio -H newc -o > ../alpineramfs.cpio
72+ ```
6473
6574### Build kernel
6675
You can’t perform that action at this time.
0 commit comments