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

Commitf8af470

Browse files
authored
Fix errors in readme
Mount EFI partition without sudoFix wrong cpio path
1 parent41bfbb8 commitf8af470

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

‎README.md‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,28 @@
22
Live linux distro combined in one EFI file.
33
Download herehttps://github.com/zhovner/OneFileLinux/releases/tag/v0.1-alpha
44

5+
More information in russianhttps://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+
<imgsrc="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

2228
This 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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp