Skip to content

Commit 5bd8fb3

Browse files
committed
feat: enable secureboot
1 parent b0748bf commit 5bd8fb3

File tree

2 files changed

+15
-38
lines changed

2 files changed

+15
-38
lines changed

README.md

+10-30
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mkdir $HOME/live-ubuntu-from-scratch
5555
sudo debootstrap \
5656
--arch=amd64 \
5757
--variant=minbase \
58-
focal \
58+
noble \
5959
$HOME/live-ubuntu-from-scratch/chroot \
6060
http://us.archive.ubuntu.com/ubuntu/
6161
```
@@ -168,12 +168,10 @@ From this point we will be configuring the `live system`.
168168
sudo \
169169
ubuntu-standard \
170170
casper \
171-
lupin-casper \
172171
discover \
173172
laptop-detect \
174173
os-prober \
175174
network-manager \
176-
resolvconf \
177175
net-tools \
178176
wireless-tools \
179177
wpagui \
@@ -185,6 +183,8 @@ From this point we will be configuring the `live system`.
185183
grub2-common \
186184
grub-efi-amd64-signed \
187185
shim-signed \
186+
memtest86+ \
187+
mtools \
188188
binutils
189189
```
190190
@@ -217,9 +217,9 @@ From this point we will be configuring the `live system`.
217217
218218
2. Console setup
219219
220-
<p align="center">
221-
<img src="images/console-configure-01.png">
222-
</p>
220+
<p align="center">
221+
<img src="images/console-configure-01.png">
222+
</p>
223223
224224
11. **Install window manager**
225225
@@ -328,40 +328,20 @@ From this point we will be configuring the `live system`.
328328
<img src="images/locales-default.png">
329329
</p>
330330
331-
2. Reconfigure resolvconf
332-
333-
```shell
334-
dpkg-reconfigure resolvconf
335-
```
336-
337-
1. *Confirm changes*
338-
<p align="center">
339-
<img src="images/resolvconf-confirm-01.png">
340-
</p>
341-
342-
<p align="center">
343-
<img src="images/resolvconf-confirm-02.png">
344-
</p>
345-
346-
<p align="center">
347-
<img src="images/resolvconf-confirm-03.png">
348-
</p>
349-
350-
3. Configure network-manager
331+
2. Configure network-manager
351332
352333
```shell
353334
cat <<EOF > /etc/NetworkManager/NetworkManager.conf
354335
[main]
355-
rc-manager=resolvconf
336+
rc-manager=none
356337
plugins=ifupdown,keyfile
357-
dns=dnsmasq
338+
dns=systemd-resolved
358339
359340
[ifupdown]
360341
managed=false
361-
EOF
362342
```
363343
364-
4. Reconfigure network-manager
344+
3. Reconfigure network-manager
365345
366346
```shell
367347
dpkg-reconfigure network-manager

scripts/chroot_build.sh

+5-8
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,11 @@ function build_image() {
180180
cp /boot/initrd.img-**-**-generic casper/initrd
181181

182182
# memtest86
183-
case $TARGET_UBUNTU_VERSION in
184-
"noble")
185-
cp /boot/memtest86+x64.bin install/memtest86+
186-
;;
187-
*)
188-
cp /boot/memtest86+.bin install/memtest86+
189-
;;
190-
esac
183+
if [ -f "/boot/memtest86+x64.bin" ]; then
184+
cp /boot/memtest86+x64.bin install/memtest86+
185+
else
186+
cp /boot/memtest86+.bin install/memtest86+
187+
fi
191188

192189
# memtest86++
193190
wget --progress=dot https://www.memtest86.com/downloads/memtest86-usb.zip -O install/memtest86-usb.zip

0 commit comments

Comments
 (0)