Compare commits
14 Commits
main
...
aa422f434e
| Author | SHA1 | Date | |
|---|---|---|---|
|
aa422f434e
|
|||
|
66204958d9
|
|||
|
2ddb6bdfb8
|
|||
|
fca5e6c6fc
|
|||
|
7135728394
|
|||
|
f0bfcbad56
|
|||
|
2fdc93d9a1
|
|||
|
fc18016a9e
|
|||
|
aafbd7ef8f
|
|||
|
fcf09e2ffc
|
|||
|
cda85111e7
|
|||
|
d1e3cedd1f
|
|||
|
d85a175989
|
|||
|
39065008aa
|
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1,3 @@
|
|||||||
archive.sh
|
archive.sh
|
||||||
system.conf
|
system.conf
|
||||||
|
*kate-swp
|
||||||
|
|||||||
44
install.sh
44
install.sh
@@ -90,27 +90,27 @@ if [[ "${ID}" == 'elementary' ]]; then
|
|||||||
network-manager \
|
network-manager \
|
||||||
openssh-{client,server} \
|
openssh-{client,server} \
|
||||||
popularity-contest
|
popularity-contest
|
||||||
elif [[ "${ID}" == 'debian' ]]; then
|
# elif [[ "${ID}" == 'debian' ]]; then
|
||||||
apt \
|
# apt \
|
||||||
install \
|
# install \
|
||||||
--yes \
|
# --yes \
|
||||||
console-setup \
|
# console-setup \
|
||||||
cryptsetup \
|
# cryptsetup \
|
||||||
curl \
|
# curl \
|
||||||
dpkg-dev \
|
# dpkg-dev \
|
||||||
efibootmgr \
|
# efibootmgr \
|
||||||
ethtool \
|
# ethtool \
|
||||||
firmware-{ast,atheros,bnx{2,2x},brcm80211,ipw2x00,iwlwifi,libertas,linux,realtek,zd1211} \
|
# firmware-{ast,atheros,bnx{2,2x},brcm80211,ipw2x00,iwlwifi,libertas,linux,realtek,zd1211} \
|
||||||
flatpak \
|
# flatpak \
|
||||||
keyboard-configuration \
|
# keyboard-configuration \
|
||||||
linux-{headers,image}-amd64 \
|
# linux-{headers,image}-amd64 \
|
||||||
locales \
|
# locales \
|
||||||
nano \
|
# nano \
|
||||||
network-manager \
|
# network-manager \
|
||||||
openssh-{client,server} \
|
# openssh-{client,server} \
|
||||||
popularity-contest \
|
# popularity-contest \
|
||||||
printer-driver-all \
|
# printer-driver-all \
|
||||||
tasksel
|
# tasksel
|
||||||
elif [[ "${ID}" == 'fedora' ]]; then
|
elif [[ "${ID}" == 'fedora' ]]; then
|
||||||
if [[ "${VERSION_ID}" -lt '41' ]]; then
|
if [[ "${VERSION_ID}" -lt '41' ]]; then
|
||||||
dnf \
|
dnf \
|
||||||
@@ -171,8 +171,6 @@ EOF
|
|||||||
|
|
||||||
apt install \
|
apt install \
|
||||||
--yes \
|
--yes \
|
||||||
dosfstools \
|
|
||||||
systemd-timesyncd \
|
|
||||||
zfs-initramfs
|
zfs-initramfs
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
38
partition.sh
38
partition.sh
@@ -40,8 +40,8 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${ID}" == 'debian' ]]; then
|
if [[ "${ID}" == 'debian' ]]; then
|
||||||
if [[ ! "${HOST}" == "debian-live" ]]; then
|
if [[ ! "$(hostname)" == "debian-live" ]]; then
|
||||||
cat << EOF | tee /mnt/etc/apt/sources.list.d/contrib.sources &> /dev/null
|
cat << EOF | tee /etc/apt/sources.list.d/contrib.sources 1> /dev/null
|
||||||
Enabled: yes
|
Enabled: yes
|
||||||
Types: deb
|
Types: deb
|
||||||
URIs: http://deb.debian.org/debian/
|
URIs: http://deb.debian.org/debian/
|
||||||
@@ -66,7 +66,7 @@ if [[ "${ID}" == 'debian' ]]; then
|
|||||||
apt \
|
apt \
|
||||||
install \
|
install \
|
||||||
--yes \
|
--yes \
|
||||||
debootstrap \
|
mmdebstrap \
|
||||||
gdisk \
|
gdisk \
|
||||||
zfsutils-linux \
|
zfsutils-linux \
|
||||||
systemd-timesyncd
|
systemd-timesyncd
|
||||||
@@ -100,7 +100,7 @@ fi
|
|||||||
|
|
||||||
timedatectl
|
timedatectl
|
||||||
|
|
||||||
if [[ ! "${HOST}" == "debian-live" ]]; then
|
if [[ ! "$(hostname)" == "debian-live" ]]; then
|
||||||
zgenhostid \
|
zgenhostid \
|
||||||
-f \
|
-f \
|
||||||
0x00bab10c
|
0x00bab10c
|
||||||
@@ -428,11 +428,35 @@ mkdir \
|
|||||||
/mnt/run/lock
|
/mnt/run/lock
|
||||||
|
|
||||||
if [[ "${ID}" == 'elementary' ]]; then
|
if [[ "${ID}" == 'elementary' ]]; then
|
||||||
debootstrap \
|
mmdebstrap \
|
||||||
|
--include='' \
|
||||||
"${UBUNTU_VERSION_CODENAME}" \
|
"${UBUNTU_VERSION_CODENAME}" \
|
||||||
/mnt
|
/mnt
|
||||||
elif [[ "${ID}" == 'debian' ]]; then
|
elif [[ "${ID}" == 'debian' ]]; then
|
||||||
debootstrap \
|
mmdebstrap \
|
||||||
|
--skip=check/empty \
|
||||||
|
--components=main,non-free-firmware,contrib \
|
||||||
|
--mode=root \
|
||||||
|
--format=directory \
|
||||||
|
--include=console-setup \
|
||||||
|
--include=cryptsetup \
|
||||||
|
--include=curl \
|
||||||
|
--include=dosfstools \
|
||||||
|
--include=dpkg-dev \
|
||||||
|
--include=efibootmgr \
|
||||||
|
--include=ethtool \
|
||||||
|
--include=firmware-{ast,atheros,bnx{2,2x},brcm80211,iwlwifi,libertas,linux,realtek,zd1211} \
|
||||||
|
--include=flatpak \
|
||||||
|
--include=keyboard-configuration \
|
||||||
|
--include=linux-{headers,image}-amd64 \
|
||||||
|
--include=locales \
|
||||||
|
--include=nano \
|
||||||
|
--include=network-manager \
|
||||||
|
--include=openssh-{client,server} \
|
||||||
|
--include=popularity-contest \
|
||||||
|
--include=printer-driver-all \
|
||||||
|
--include=systemd-timesyncd \
|
||||||
|
--include=tasksel \
|
||||||
"${VERSION_CODENAME}" \
|
"${VERSION_CODENAME}" \
|
||||||
/mnt
|
/mnt
|
||||||
fi
|
fi
|
||||||
@@ -502,6 +526,8 @@ Suites: ${VERSION_CODENAME}-updates
|
|||||||
Components: main non-free-firmware contrib
|
Components: main non-free-firmware contrib
|
||||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
rm /mnt/etc/apt/sources.list
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mount \
|
mount \
|
||||||
|
|||||||
Reference in New Issue
Block a user