-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make network interface names predictable
Signed-off-by: Kiefer Chang <[email protected]>
- Loading branch information
1 parent
f846b0f
commit 9166b6b
Showing
6 changed files
with
35 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
set console_params="console=tty1" | ||
set kernel=/boot/vmlinuz | ||
if [ -n "$recoverylabel" ]; then | ||
set kernelcmd="$console_params root=live:LABEL=$recoverylabel rd.live.dir=/ rd.live.squashimg=$img panic=5" | ||
set kernelcmd="$console_params root=live:LABEL=$recoverylabel rd.live.dir=/ rd.live.squashimg=$img panic=5 net.ifnames=1" | ||
else | ||
set kernelcmd="$console_params root=LABEL=$label cos-img/filename=$img panic=5" | ||
set kernelcmd="$console_params root=LABEL=$label cos-img/filename=$img panic=5 net.ifnames=1" | ||
fi | ||
|
||
set initramfs=/boot/initrd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
SERIAL 0 | ||
PROMPT 1 | ||
TIMEOUT 50 | ||
DEFAULT vga | ||
|
||
SAY | ||
SAY ################################################################## | ||
SAY # # | ||
SAY # Press <ENTER> to boot HarvesterOS Live or wait 5 seconds. # | ||
SAY # # | ||
SAY # Press <TAB> to view available boot entries or enter Syslinux # | ||
SAY # commands directly. # | ||
SAY # # | ||
SAY ################################################################## | ||
SAY | ||
|
||
LABEL vga | ||
LINUX /boot/kernel.xz | ||
APPEND cdroot root=live:CDLABEL=COS_LIVE rd.live.dir=/ rd.live.squashimg=rootfs.squashfs console=tty1 console=ttyS0 rd.cos.disable net.ifnames=1 | ||
INITRD /boot/rootfs.xz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters