File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,7 @@ if [ ! "$rootfs_dir" ]; then
208
208
distro=$distro
209
209
fi
210
210
211
- print_title " patching debian rootfs"
211
+ print_title " patching $distro rootfs"
212
212
retry_cmd ./patch_rootfs.sh $shim_bin $reco_bin $rootfs_dir " quiet=$quiet "
213
213
214
214
print_title " building final disk image"
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ systemctl enable kill-frecon.service
79
79
80
80
# install base packages
81
81
if [ ! " $disable_base_pkgs " ]; then
82
- apt-get install -y cloud-utils zram-tools sudo command-not-found bash-completion
82
+ apt-get install -y cloud-utils zram-tools sudo command-not-found bash-completion libfuse2 libfuse3-3
83
83
84
84
# set up zram
85
85
echo " ALGO=lzo" >> /etc/default/zramswap
112
112
apt-get install -y $packages
113
113
114
114
# disable selinux to prevent a harmless error from showing up during the boot
115
- echo " SELINUX=disabled" | tee -a /etc/selinux/config
115
+ echo " SELINUX=disabled" >> /etc/selinux/config
116
116
117
117
if [ ! $username ]; then
118
118
read -p " Enter the username for the user account: " username
Original file line number Diff line number Diff line change 3
3
# this script automatically expands the root filesystem
4
4
5
5
set -e
6
+ if [ " $DEBUG " ]; then
7
+ set -x
8
+ fi
6
9
7
10
if [ " $EUID " -ne 0 ]; then
8
11
echo " This needs to be run as root."
11
14
12
15
part_dev=" $( findmnt -T / -no SOURCE) "
13
16
disk_dev=" $( lsblk --list --noheadings --paths --output PKNAME " $part_dev " ) "
14
- part_name=" $( echo " $part_dev " | rev | cut -d' /' -f1 | rev) "
15
- part_num=" $( cat /proc/partitions | grep " $part_name " | awk ' {print $2}' ) "
17
+ part_num=" $( echo " ${part_dev# $disk_dev } " | tr -d ' p' ) "
16
18
17
19
echo " Automatically detected root filesystem:"
18
20
fdisk -l " $disk_dev " 2> /dev/null | grep " ${disk_dev} :" -A 1
You can’t perform that action at this time.
0 commit comments