Skip to content

Commit 470ae9f

Browse files
committed
Rename eupnea to depthboot
1 parent 2515275 commit 470ae9f

16 files changed

+253
-244
lines changed

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Verbose log:
2323

2424

2525
**Build system (please complete the following information):**
26-
- OS: [e.g. Ubuntu, Windows 11, Crostini(aka Linux on ChromeOS)]
26+
- OS: [e.g. Ubuntu, Windows Subsystem for Linux, Crostini(aka Linux on ChromeOS)]
2727

2828
**Additional context**
2929
Add any other context about the problem here.

Diff for: .github/repo-scripts/update-links.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
from urllib.request import urlretrieve
66
import json
77

8+
# Do not import functions.py, as script is run in a different directory
9+
810
if __name__ == '__main__':
911
print("\033[96m" + "Starting update script" + "\033[0m")
1012
with open('distro-links.json', 'r') as file:

Diff for: .gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/.idea/
2-
eupnea.img
2+
depthboot.img
33
kernel.flags
44
/__pycache__/
55
/venv/

Diff for: README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
### Eupnea is currently in alpha
2-
# 🙼 [EUPNEA](https://eupnea-linux.github.io/)
3-
[<img src="https://github.com/eupnea-linux/eupnea-linux.github.io/blob/main/assets/banner.png?raw=true" alt="Breath banner"></img>](https://eupnea-linux.github.io/)
1+
### Depthboot is currently in alpha
2+
# 🙼 [DEPTHBOOT](https://eupnea-linux.github.io/)
3+
[<img src="https://github.com/eupnea-linux/eupnea-linux.github.io/blob/main/assets/banner.png?raw=true" alt="Depthboot banner"></img>](https://eupnea-linux.github.io/)
44

55
<p align="center">A way to natively boot and run Linux on modern Chromebooks without replacing firmware</p>
66

@@ -12,16 +12,16 @@
1212
## Supported Devices
1313
[Supported devices](https://eupnea-linux.github.io/docs.html#/pages/devices)
1414

15-
## Eupnea vs mainline
15+
## Depthboot vs mainline
1616
**Stock Ubuntu:**
1717
* Requires a change in firmware (UEFI or RW_legacy)
1818
* Some hardware may not work(touchscreen, touchpad...) and audio is mostly unsupported.
1919

20-
**Eupnea:**
20+
**Depthboot:**
2121
* Requires no change in firmware and has all peripherals working. Audio support varies.
2222

23-
## How does Eupnea work?
24-
This project uses a slightly modified ChromeOS Kernel and firmware. All devices supported in ChromeOS work in Eupnea. Due to licensing restraints, Eupnea cannot be distributed as an iso. Instead, it has to be build locally on the device.
23+
## How does Depthboot work?
24+
This project uses a slightly modified ChromeOS Kernel and firmware. All devices supported in ChromeOS work in Depthboot. Due to licensing restraints, Depthboot cannot be distributed as an iso. Instead, it has to be build locally on the device.
2525

2626
[Read more](https://eupnea-linux.github.io/docs.html#/dev-pages/build-script)
2727

Diff for: build.py

+120-114
Large diffs are not rendered by default.

Diff for: cli_input.py

+17-16
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,25 @@ def get_user_input() -> dict:
1414
"de_name": "cli",
1515
"username": "localuser",
1616
"password": "",
17-
"hostname": "eupnea-chromebook",
17+
"hostname": "depthboot-chromebook",
1818
"device": "image",
1919
"rebind_search": False
2020
}
2121
with open("distro-links.json", "r") as file:
2222
distros = json.load(file)
2323

2424
# Print welcome message
25-
print_header("Welcome to Eupnea")
26-
print_header("This script will create a bootable Eupnea USB-drive/SD-card/image for you.")
25+
print_header("Welcome to Depthboot, formerly known as Breath")
26+
print_header("This script will create a bootable Depthboot USB-drive/SD-card/image for you.")
2727
print_header("You will now be asked a few questions. If you dont know what to answer, just press 'enter' and the"
2828
" recommended answer will be used.")
2929
input("(Press enter to continue)")
3030
print_question("Which Linux distro(flavor) would you like to use?")
3131

3232
while True:
33-
temp_distro_name = input("\033[94m" + "Available options: Ubuntu(default, recommended), Debian, Arch, Fedora, Pop!_OS\n"
34-
+ "\033[0m")
33+
temp_distro_name = input(
34+
"\033[94m" + "Available options: Ubuntu(default, recommended), Debian, Arch, Fedora, Pop!_OS\n"
35+
+ "\033[0m")
3536
match temp_distro_name:
3637
case "Ubuntu" | "ubuntu" | "":
3738
output_dict["distro_name"] = "ubuntu"
@@ -93,22 +94,22 @@ def get_user_input() -> dict:
9394
case _:
9495
print_warning("Check your spelling and try again")
9596
continue
96-
97-
if not output_dict["distro_name"] =="pop-os":
97+
98+
if not output_dict["distro_name"] == "pop-os":
9899
print_question("Which desktop environment(Desktop GUI) would you like to use?")
99100
match output_dict["distro_name"]:
100101
case "ubuntu":
101102
available_de = "Gnome(default, recommended), KDE(recommended), MATE, Xfce(recommended for weak devices), " \
102-
"LXQt(recommended for weak devices), deepin, budgie, cli"
103+
"LXQt(recommended for weak devices), deepin, budgie, cli"
103104
case "debian":
104105
available_de = "Gnome(default, recommended), KDE(recommended), MATE, Xfce(recommended for weak devices), " \
105-
"LXQt(recommended for weak devices), budgie, cli"
106+
"LXQt(recommended for weak devices), budgie, cli"
106107
case "arch":
107108
available_de = "Gnome(default, recommended), KDE(recommended), MATE, Xfce(recommended for weak devices), " \
108-
"LXQt(recommended for weak devices), deepin, budgie, cli"
109+
"LXQt(recommended for weak devices), deepin, budgie, cli"
109110
case "fedora":
110111
available_de = "Gnome(default, recommended), KDE(recommended), MATE, Xfce(recommended for weak devices), " \
111-
"LXQt(recommended for weak devices), deepin, cli"
112+
"LXQt(recommended for weak devices), deepin, cli"
112113

113114
while True:
114115
temp_de_name = input("\033[94m" + "Available options: " + available_de + "\033[0m" + "\n")
@@ -150,7 +151,7 @@ def get_user_input() -> dict:
150151
case "cli" | "none":
151152
print_warning("Warning: No desktop environment will be installed!")
152153
if input("\033[94mType 'yes' to continue or Press Enter to choose a desktop environment" +
153-
"\033[0m\n") == "yes":
154+
"\033[0m\n") == "yes":
154155
print("No desktop will be installed")
155156
output_dict["de_name"] = "cli"
156157
break
@@ -161,7 +162,7 @@ def get_user_input() -> dict:
161162

162163
# Gnome has a first time setup -> skip this part for gnome, as there will be a first time setup
163164
if not output_dict["de_name"] == "gnome":
164-
print_question("Enter username to be used in Eupnea")
165+
print_question("Enter a username for the new user")
165166
while True:
166167
output_dict["username"] = input("\033[94m" + "Username(default: 'localuser'): " + "\033[0m")
167168
if output_dict["username"] == "":
@@ -206,10 +207,10 @@ def get_user_input() -> dict:
206207
# TODO: Maybe skip this, as its not really needed for the average user to set themselves
207208
print_question("Enter hostname for the chromebook.(Hostname is something like a device name)")
208209
while True:
209-
output_dict["hostname"] = input("\033[94m" + "Hostname(default: 'eupnea-chromebook'): " + "\033[0m")
210+
output_dict["hostname"] = input("\033[94m" + "Hostname(default: 'depthboot-chromebook'): " + "\033[0m")
210211
if output_dict["hostname"] == "":
211-
print("Using eupnea-chromebook as hostname")
212-
output_dict["hostname"] = "eupnea-chromebook"
212+
print("Using depthboot-chromebook as hostname")
213+
# name is already preset in the dictionary
213214
break
214215
if output_dict["hostname"][0] == "-":
215216
print_warning("Hostname cannot start with a '-'")

Diff for: configs/eupnea-modules.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Eupnea modules
1+
# Depthboot modules
22
uvcvideo
33
nls_iso8859-1
44
nls_cp437

Diff for: configs/eupnea.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"kernel_type": "",
33
"kernel_version": "none",
4-
"eupnea_version": "0.6.1-alpha",
5-
"eupnea_install_type": "image",
4+
"depthboot_version": "0.6.1-alpha",
5+
"depthboot_install_type": "image",
66
"distro_name": "",
77
"de_name": ""
88
}

Diff for: configs/postinstall.service

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[Unit]
2-
Description=Postinstall service, should auto delete on first run
2+
Description=Postinstall service, autodeletes itself if run successfully on first boot
33

44
[Service]
55
Type=oneshot

Diff for: distro/arch.py

+18-18
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
66
print_status("Configuring Arch")
77

88
# Uncomment worldwide arch mirror
9-
with open("/mnt/eupnea/etc/pacman.d/mirrorlist", "r") as read:
9+
with open("/mnt/depthboot/etc/pacman.d/mirrorlist", "r") as read:
1010
mirrors = read.readlines()
1111
# Uncomment first worldwide mirror
1212
mirrors[6] = mirrors[6][1:]
13-
with open("/mnt/eupnea/etc/pacman.d/mirrorlist", "w") as write:
13+
with open("/mnt/depthboot/etc/pacman.d/mirrorlist", "w") as write:
1414
write.writelines(mirrors)
1515

1616
# Apply temporary fix for pacman
17-
bash("mount --bind /mnt/eupnea /mnt/eupnea")
18-
with open("/mnt/eupnea/etc/pacman.conf", "r") as conf:
17+
bash("mount --bind /mnt/depthboot /mnt/depthboot")
18+
with open("/mnt/depthboot/etc/pacman.conf", "r") as conf:
1919
temp_pacman = conf.readlines()
2020
# temporarily comment out CheckSpace, coz Pacman fails to check available storage space when run from a chroot
2121
temp_pacman[34] = f"#{temp_pacman[34]}"
22-
with open("/mnt/eupnea/etc/pacman.conf", "w") as conf:
22+
with open("/mnt/depthboot/etc/pacman.conf", "w") as conf:
2323
conf.writelines(temp_pacman)
2424

2525
print_status("Preparing pacman")
@@ -67,7 +67,7 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
6767
chroot("pacman -S --noconfirm deepin deepin-kwin deepin-extra xorg xorg-server lightdm kde-applications "
6868
"firefox")
6969
# enable deepin specific login style
70-
with open("/mnt/eupnea/etc/lightdm/lightdm.conf", "a") as conf:
70+
with open("/mnt/depthboot/etc/lightdm/lightdm.conf", "a") as conf:
7171
conf.write("greeter-session=lightdm-deepin-greeter")
7272
chroot("systemctl enable lightdm.service")
7373
case "budgie":
@@ -92,28 +92,28 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
9292
chroot("systemctl enable NetworkManager.service")
9393

9494
# Configure sudo
95-
with open("/mnt/eupnea/etc/sudoers", "r") as conf:
95+
with open("/mnt/depthboot/etc/sudoers", "r") as conf:
9696
temp_sudoers = conf.readlines()
9797
# uncomment wheel group
9898
temp_sudoers[84] = temp_sudoers[84][2:]
99-
with open("/mnt/eupnea/etc/sudoers", "w") as conf:
99+
with open("/mnt/depthboot/etc/sudoers", "w") as conf:
100100
conf.writelines(temp_sudoers)
101101

102102
print_status("Restoring pacman config")
103-
with open("/mnt/eupnea/etc/pacman.conf", "r") as conf:
103+
with open("/mnt/depthboot/etc/pacman.conf", "r") as conf:
104104
temp_pacman = conf.readlines()
105105
# comment out CheckSpace
106106
temp_pacman[34] = temp_pacman[34][1:]
107-
with open("/mnt/eupnea/etc/pacman.conf", "w") as conf:
107+
with open("/mnt/depthboot/etc/pacman.conf", "w") as conf:
108108
conf.writelines(temp_pacman)
109109

110-
# TODO: add eupnea to arch name
111-
# Add eupnea to version(this is purely cosmetic)
112-
with open("/mnt/eupnea/etc/os-release", "r") as f:
110+
# TODO: add depthboot to arch name
111+
# Add depthboot to version(this is purely cosmetic)
112+
with open("/mnt/depthboot/etc/os-release", "r") as f:
113113
os_release = f.readlines()
114-
os_release[0] = os_release[0][:-2] + ' (Eupnea)"\n'
115-
os_release[1] = os_release[1][:-2] + ' (Eupnea)"\n'
116-
with open("/mnt/eupnea/etc/os-release", "w") as f:
114+
os_release[0] = os_release[0][:-2] + ' (Depthboot)"\n'
115+
os_release[1] = os_release[1][:-2] + ' (Depthboot)"\n'
116+
with open("/mnt/depthboot/etc/os-release", "w") as f:
117117
f.writelines(os_release)
118118

119119
print_status("Arch configuration complete")
@@ -122,6 +122,6 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
122122
# using arch-chroot for arch
123123
def chroot(command: str):
124124
if verbose:
125-
bash(f'arch-chroot /mnt/eupnea bash -c "{command}"')
125+
bash(f'arch-chroot /mnt/depthboot bash -c "{command}"')
126126
else:
127-
bash(f'arch-chroot /mnt/eupnea bash -c "{command}" 2>/dev/null 1>/dev/null') # supress all output
127+
bash(f'arch-chroot /mnt/depthboot bash -c "{command}" 2>/dev/null 1>/dev/null') # supress all output

Diff for: distro/debian.py

+14-14
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
6060
# GDM3 auto installs gnome-minimal. Gotta remove it if user didn't choose gnome
6161
if not de_name == "gnome":
6262
try:
63-
rmfile("/mnt/eupnea/usr/share/xsessions/ubuntu.desktop")
63+
rmfile("/mnt/depthboot/usr/share/xsessions/ubuntu.desktop")
6464
except FileNotFoundError:
6565
pass
6666
chroot("apt-get remove -y gnome-shell")
6767
chroot("apt-get autoremove -y")
6868

6969
# Fix gdm3, https://askubuntu.com/questions/1239503/ubuntu-20-04-and-20-10-etc-securetty-no-such-file-or-directory
7070
try:
71-
cpfile("/mnt/eupnea/usr/share/doc/util-linux/examples/securetty", "/mnt/eupnea/etc/securetty")
71+
cpfile("/mnt/depthboot/usr/share/doc/util-linux/examples/securetty", "/mnt/depthboot/etc/securetty")
7272
except FileNotFoundError:
7373
pass
7474
print_status("Desktop environment setup complete")
@@ -78,39 +78,39 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
7878
chroot("apt-get remove -y xserver-xorg-input-synaptics")
7979
# chroot("apt-get install -y xserver-xorg-input-libinput")
8080

81-
# Pre-update python to 3.10 as some eupnea postinstall scripts require it
81+
# Pre-update python to 3.10 as some postinstall scripts require it
8282
print_status("Upgrading python to 3.10")
8383
# switch to unstable channel
84-
with open("/mnt/eupnea/etc/apt/sources.list", "r") as file:
84+
with open("/mnt/depthboot/etc/apt/sources.list", "r") as file:
8585
original_sources = file.readlines()
8686
sources = original_sources
8787
sources[1] = sources[1].replace("stable", "unstable")
88-
with open("/mnt/eupnea/etc/apt/sources.list", "w") as file:
88+
with open("/mnt/depthboot/etc/apt/sources.list", "w") as file:
8989
file.writelines(sources)
9090
# update and install python
9191
print_status("Installing python 3.10")
9292
chroot("apt-get update -y")
9393
chroot("apt-get install -y python3")
9494
print_status("Python 3.10 installed")
9595
# revert to stable channel
96-
with open("/mnt/eupnea/etc/apt/sources.list", "w") as file:
96+
with open("/mnt/depthboot/etc/apt/sources.list", "w") as file:
9797
file.writelines(original_sources)
9898
chroot("apt-get update -y")
9999

100-
# Add eupnea to version(this is purely cosmetic)
101-
with open("/mnt/eupnea/etc/os-release", "r") as f:
100+
# Add depthboot to version(this is purely cosmetic)
101+
with open("/mnt/depthboot/etc/os-release", "r") as f:
102102
os_release = f.readlines()
103-
os_release[0] = os_release[0][:-2] + ' (Eupnea)"\n'
104-
os_release[1] = os_release[1][:-2] + ' (Eupnea)"\n'
105-
os_release[3] = os_release[3][:-2] + ' (Eupnea)"\n'
106-
with open("/mnt/eupnea/etc/os-release", "w") as f:
103+
os_release[0] = os_release[0][:-2] + ' (Depthboot)"\n'
104+
os_release[1] = os_release[1][:-2] + ' (Depthboot)"\n'
105+
os_release[3] = os_release[3][:-2] + ' (Depthboot)"\n'
106+
with open("/mnt/depthboot/etc/os-release", "w") as f:
107107
f.writelines(os_release)
108108

109109
print_status("Debian setup complete")
110110

111111

112112
def chroot(command: str) -> None:
113113
if verbose:
114-
bash(f'chroot /mnt/eupnea /bin/sh -c "{command}"')
114+
bash(f'chroot /mnt/depthboot /bin/sh -c "{command}"')
115115
else:
116-
bash(f'chroot /mnt/eupnea /bin/sh -c "{command}" 2>/dev/null 1>/dev/null') # supress all output
116+
bash(f'chroot /mnt/depthboot /bin/sh -c "{command}" 2>/dev/null 1>/dev/null') # supress all output

Diff for: distro/fedora.py

+9-9
Original file line numberDiff line numberDiff line change
@@ -59,33 +59,33 @@ def config(de_name: str, distro_version: str, username: str, root_partuuid: str,
5959

6060
# Create /.autorelabel to force SELinux to relabel all files
6161
# If this is not done, the system won't let users login, even if set to permissive
62-
with open("/mnt/eupnea/.autorelabel", "w") as f:
62+
with open("/mnt/depthboot/.autorelabel", "w") as f:
6363
f.write("")
6464

6565
# The default fstab file has the wrong PARTUUID -> system boots in emergency mode if not fixed
6666
with open("configs/fstab/fedora.fstab", "r") as f:
6767
fstab = f.read()
6868
fstab = fstab.replace("insert_partuuid", root_partuuid)
69-
with open("/mnt/eupnea/etc/fstab", "w") as f:
69+
with open("/mnt/depthboot/etc/fstab", "w") as f:
7070
f.write(fstab)
7171

7272
# TODO: Fix zram
7373
chroot("dnf remove zram-generator-defaults -y") # remove zram as it fails for some reason
7474
chroot("systemctl disable [email protected]") # disable zram service
7575

76-
# Add eupnea to version(this is purely cosmetic)
77-
with open("/mnt/eupnea/etc/os-release", "r") as f:
76+
# Add depthboot to version(this is purely cosmetic)
77+
with open("/mnt/depthboot/etc/os-release", "r") as f:
7878
os_release = f.read()
79-
os_release = os_release.replace("Cloud Edition Prerelease", "Eupnea")
80-
os_release = os_release.replace("Cloud Edition", "Eupnea")
81-
with open("/mnt/eupnea/etc/os-release", "w") as f:
79+
os_release = os_release.replace("Cloud Edition Prerelease", "Depthboot")
80+
os_release = os_release.replace("Cloud Edition", "Depthboot")
81+
with open("/mnt/depthboot/etc/os-release", "w") as f:
8282
f.write(os_release)
8383

8484
print_status("Debian setup complete")
8585

8686

8787
def chroot(command: str) -> None:
8888
if verbose:
89-
bash(f'chroot /mnt/eupnea /bin/sh -c "{command}"')
89+
bash(f'chroot /mnt/depthboot /bin/sh -c "{command}"')
9090
else:
91-
bash(f'chroot /mnt/eupnea /bin/sh -c "{command}" 2>/dev/null 1>/dev/null') # supress all output
91+
bash(f'chroot /mnt/depthboot /bin/sh -c "{command}" 2>/dev/null 1>/dev/null') # supress all output

Diff for: distro/popos.py

+7-7
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,19 @@ def config(de_name: str, distro_version: str, username:str,root_partuuid: str, v
1818
chroot("apt-get remove -y xserver-xorg-input-synaptics")
1919
chroot("apt-get install -y xserver-xorg-input-libinput")
2020

21-
# Add eupnea to version(this is purely cosmetic)
22-
with open("/mnt/eupnea/etc/os-release", "r") as f:
21+
# Add depthboot to version(this is purely cosmetic)
22+
with open("/mnt/depthboot/etc/os-release", "r") as f:
2323
os_release = f.readlines()
24-
os_release[1] = os_release[1][:-2] + ' (Eupnea)"\n'
25-
os_release[4] = os_release[4][:-2] + ' (Eupnea)"\n'
26-
with open("/mnt/eupnea/etc/os-release", "w") as f:
24+
os_release[1] = os_release[1][:-2] + ' (Depthboot)"\n'
25+
os_release[4] = os_release[4][:-2] + ' (Depthboot)"\n'
26+
with open("/mnt/depthboot/etc/os-release", "w") as f:
2727
f.writelines(os_release)
2828

2929
print_status("Pop!_OS setup complete")
3030

3131

3232
def chroot(command: str) -> None:
3333
if verbose:
34-
bash(f'chroot /mnt/eupnea /bin/bash -c "{command}"')
34+
bash(f'chroot /mnt/depthboot /bin/bash -c "{command}"')
3535
else:
36-
bash(f'chroot /mnt/eupnea /bin/bash -c "{command}" 2>/dev/null 1>/dev/null') # supress all output
36+
bash(f'chroot /mnt/depthboot /bin/bash -c "{command}" 2>/dev/null 1>/dev/null') # supress all output

0 commit comments

Comments
 (0)