Compare commits
7 Commits
a36854c208
...
203a09eb05
| Author | SHA1 | Date | |
|---|---|---|---|
|
203a09eb05
|
|||
|
5b4a77f615
|
|||
|
939359b94e
|
|||
|
12beaaf5d2
|
|||
|
211a0413f5
|
|||
|
7ba4a4f60f
|
|||
|
328b02a294
|
@@ -9,32 +9,44 @@ source \
|
||||
"${BASEDIR}/system.conf"
|
||||
|
||||
|
||||
packages=(\
|
||||
console-setup \
|
||||
cryptsetup \
|
||||
curl \
|
||||
dosfstools \
|
||||
dpkg-dev \
|
||||
efibootmgr \
|
||||
ethtool \
|
||||
firmware-{ast,atheros,bnx{2,2x},brcm80211,iwlwifi,libertas,linux,realtek,zd1211} \
|
||||
flatpak \
|
||||
keyboard-configuration \
|
||||
linux-{headers,image}-amd64 \
|
||||
locales \
|
||||
nano \
|
||||
network-manager \
|
||||
openssh-{client,server} \
|
||||
popularity-contest \
|
||||
printer-driver-all \
|
||||
systemd-timesyncd \
|
||||
tasksel \
|
||||
zfs-initramfs \
|
||||
zstd\
|
||||
)
|
||||
|
||||
|
||||
include="--include=${packages[0]}"
|
||||
|
||||
for ((i=1;i<${#packages[@]};i++)); do
|
||||
include+=" --include=${packages[${i}]}"
|
||||
done
|
||||
|
||||
if [[ "${1}" == '-1' ]]; then
|
||||
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 \
|
||||
--include=zstd \
|
||||
${include} \
|
||||
"${VERSION_CODENAME}" \
|
||||
/mnt
|
||||
elif [[ "${1}" == '-2' ]]; then
|
||||
|
||||
@@ -9,32 +9,88 @@ source \
|
||||
"${BASEDIR}/system.conf"
|
||||
|
||||
|
||||
packages=(\
|
||||
console-setup \
|
||||
cryptsetup \
|
||||
curl \
|
||||
dosfstools \
|
||||
dpkg-dev \
|
||||
efibootmgr \
|
||||
ethtool \
|
||||
flatpak \
|
||||
keyboard-configuration \
|
||||
linux-generic \
|
||||
locales \
|
||||
nano \
|
||||
network-manager \
|
||||
openssh-{client,server} \
|
||||
popularity-contest \
|
||||
zfs-initramfs \
|
||||
zstd\
|
||||
)
|
||||
|
||||
|
||||
include="--include=${packages[0]}"
|
||||
|
||||
for ((i=1;i<${#packages[@]};i++)); do
|
||||
include+=" --include=${packages[${i}]}"
|
||||
done
|
||||
|
||||
if [[ "${1}" == '-1' ]]; then
|
||||
mmdebstrap \
|
||||
--include='' \
|
||||
--skip=check/empty \
|
||||
--components=main,restricted,universe,multiverse \
|
||||
--mode=root \
|
||||
--format=directory \
|
||||
${include} \
|
||||
"${UBUNTU_VERSION_CODENAME}" \
|
||||
/mnt
|
||||
elif [[ "${1}" == '-2' ]]; then
|
||||
cat <<EOF >/mnt/etc/apt/sources.list
|
||||
deb http://archive.ubuntu.com/ubuntu/ ${UBUNTU_VERSION_CODENAME} main restricted universe multiverse
|
||||
deb-src http://archive.ubuntu.com/ubuntu/ ${UBUNTU_VERSION_CODENAME} main restricted universe multiverse
|
||||
cat <<EOF >/mnt/etc/apt/sources.list.d/${UBUNTU_VERSION_CODENAME}.sources
|
||||
# ${UBUNTU_VERSION_CODENAME^}
|
||||
Enabled: yes
|
||||
Types: deb deb-src
|
||||
URIs: http://archive.ubuntu.com/ubuntu/
|
||||
Suites: ${UBUNTU_VERSION_CODENAME}
|
||||
Components: main restricted universe multiverse
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
|
||||
deb http://security.ubuntu.com/ubuntu/ ${UBUNTU_VERSION_CODENAME}-security main restricted universe multiverse
|
||||
deb-src http://security.ubuntu.com/ubuntu/ ${UBUNTU_VERSION_CODENAME}-security main restricted universe multiverse
|
||||
# ${UBUNTU_VERSION_CODENAME^} Security
|
||||
Enabled: yes
|
||||
Types: deb deb-src
|
||||
URIs: http://security.ubuntu.com/ubuntu/
|
||||
Suites: ${UBUNTU_VERSION_CODENAME}-security
|
||||
Components: main restricted universe multiverse
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
|
||||
deb http://archive.ubuntu.com/ubuntu/ ${UBUNTU_VERSION_CODENAME}-updates main restricted universe multiverse
|
||||
deb-src http://archive.ubuntu.com/ubuntu/ ${UBUNTU_VERSION_CODENAME}-updates main restricted universe multiverse
|
||||
# ${UBUNTU_VERSION_CODENAME^} Updates
|
||||
Enabled: yes
|
||||
Types: deb deb-src
|
||||
URIs: http://archive.ubuntu.com/ubuntu/
|
||||
Suites: ${UBUNTU_VERSION_CODENAME}-updates
|
||||
Components: main restricted universe multiverse
|
||||
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
|
||||
EOF
|
||||
|
||||
cat <<EOF >/mnt/etc/apt/sources.list.d/elementary.list
|
||||
deb https://ppa.launchpadcontent.net/elementary-os/stable/ubuntu ${UBUNTU_VERSION_CODENAME} main
|
||||
deb-src https://ppa.launchpadcontent.net/elementary-os/stable/ubuntu ${UBUNTU_VERSION_CODENAME} main
|
||||
cat <<EOF >/mnt/etc/apt/sources.list.d/elementary.sources
|
||||
Enabled: yes
|
||||
Types: deb deb-src
|
||||
URIs: https://ppa.launchpadcontent.net/elementary-os/stable/ubuntu
|
||||
Suites: ${UBUNTU_VERSION_CODENAME}
|
||||
Components: main
|
||||
Signed-By: /etc/apt/trusted.gpg.d/elementary.key.asc
|
||||
EOF
|
||||
|
||||
cat <<EOF >/mnt/etc/apt/sources.list.d/patches.list
|
||||
deb https://ppa.launchpadcontent.net/elementary-os/os-patches/ubuntu ${UBUNTU_VERSION_CODENAME} main
|
||||
deb-src https://ppa.launchpadcontent.net/elementary-os/os-patches/ubuntu ${UBUNTU_VERSION_CODENAME} main
|
||||
Enabled: yes
|
||||
Types: deb deb-src
|
||||
URIs: https://ppa.launchpadcontent.net/elementary-os/os-patches/ubuntu
|
||||
Suites: ${UBUNTU_VERSION_CODENAME}
|
||||
Components: main
|
||||
Signed-By: /etc/apt/trusted.gpg.d/patches.key.asc
|
||||
EOF
|
||||
|
||||
rm /mnt/etc/apt/sources.list
|
||||
elif [[ "${1}" == '-3' ]]; then
|
||||
rsync -pogAXtlHrDx \
|
||||
/etc/skel \
|
||||
|
||||
25
install.sh
25
install.sh
@@ -71,26 +71,7 @@ EOF
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ "${ID}" == 'elementary' ]]; then
|
||||
apt \
|
||||
install \
|
||||
--yes \
|
||||
--no-install-recommends \
|
||||
console-setup \
|
||||
cryptsetup \
|
||||
curl \
|
||||
dpkg-dev \
|
||||
efibootmgr \
|
||||
ethtool \
|
||||
flatpak \
|
||||
keyboard-configuration \
|
||||
linux-generic \
|
||||
locales \
|
||||
nano \
|
||||
network-manager \
|
||||
openssh-{client,server} \
|
||||
popularity-contest
|
||||
elif [[ "${ID}" == 'fedora' ]]; then
|
||||
if [[ "${ID}" == 'fedora' ]]; then
|
||||
if [[ "${VERSION_ID}" -lt '41' ]]; then
|
||||
dnf \
|
||||
config-manager \
|
||||
@@ -147,10 +128,6 @@ EOF
|
||||
tzdata \
|
||||
keyboard-configuration \
|
||||
console-setup
|
||||
|
||||
apt install \
|
||||
--yes \
|
||||
zfs-initramfs
|
||||
fi
|
||||
|
||||
if [[ "${ID}" == 'debian' ]]; then
|
||||
|
||||
@@ -53,7 +53,7 @@ if [[ -f '/usr/bin/gsettings' ]]; then
|
||||
false
|
||||
fi
|
||||
|
||||
if [[ "${ID}" == 'debian' ]]; then
|
||||
if [[ "${ID}" == 'debian' ]] || [[ "${ID}" == 'elementary' ]]; then
|
||||
apt \
|
||||
update && \
|
||||
apt \
|
||||
|
||||
Reference in New Issue
Block a user