Skip to content

Commit 301eee4

Browse files
committed
[update] : mkinitcpio-archiso v63-1
1 parent 69f4aff commit 301eee4

6 files changed

Lines changed: 8 additions & 107 deletions

File tree

system/initcpio/hooks/archiso

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,6 @@ _mnt_dev() {
9696
local flg="${3}"
9797
local opts="${4}"
9898

99-
mkdir -p "${mnt}"
100-
10199
msg ":: Mounting '${dev}' to '${mnt}'"
102100

103101
while ! poll_device "${dev}" 30; do
@@ -107,7 +105,7 @@ _mnt_dev() {
107105
launch_interactive_shell
108106
done
109107

110-
if mount -o "${opts}" "${flg}" "${dev}" "${mnt}"; then
108+
if mount --mkdir -o "${opts}" "${flg}" "${dev}" "${mnt}"; then
111109
msg ":: Device '${dev}' mounted successfully."
112110
else
113111
echo "ERROR; Failed to mount '${dev}'"
@@ -217,8 +215,7 @@ archiso_mount_handler() {
217215

218216
if [ "${copytoram}" = "y" ]; then
219217
msg ":: Mounting /run/archiso/copytoram (tmpfs) filesystem, size=${copytoram_size}"
220-
mkdir -p /run/archiso/copytoram
221-
mount -t tmpfs -o "size=${copytoram_size}",mode=0755 copytoram /run/archiso/copytoram
218+
mount --mkdir -t tmpfs -o "size=${copytoram_size}",mode=0755 copytoram /run/archiso/copytoram
222219
fi
223220

224221
if [ -n "${cow_device}" ]; then
@@ -228,8 +225,7 @@ archiso_mount_handler() {
228225
mount -o remount,rw "/run/archiso/cowspace"
229226
else
230227
msg ":: Mounting /run/archiso/cowspace (tmpfs) filesystem, size=${cow_spacesize}..."
231-
mkdir -p /run/archiso/cowspace
232-
mount -t tmpfs -o "size=${cow_spacesize}",mode=0755 cowspace /run/archiso/cowspace
228+
mount --mkdir -t tmpfs -o "size=${cow_spacesize}",mode=0755 cowspace /run/archiso/cowspace
233229
fi
234230
mkdir -p "/run/archiso/cowspace/${cow_directory}"
235231
chmod 0700 "/run/archiso/cowspace/${cow_directory}"

system/initcpio/hooks/archiso_pxe_http

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,7 @@ archiso_pxe_http_mount_handler() {
4242
local img_type="sfs"
4343

4444
msg ":: Mounting /run/archiso/httpspace (tmpfs) filesystem, size='${archiso_http_spc}'"
45-
mkdir -p "/run/archiso/httpspace"
46-
mount -t tmpfs -o size="${archiso_http_spc}",mode=0755 httpspace "/run/archiso/httpspace"
45+
mount --mkdir -t tmpfs -o size="${archiso_http_spc}",mode=0755 httpspace "/run/archiso/httpspace"
4746

4847
# shellcheck disable=SC2154
4948
# defined via initcpio's parse_cmdline()
@@ -65,8 +64,7 @@ archiso_pxe_http_mount_handler() {
6564
_curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.${img_type}.sig" "/${arch}"
6665
fi
6766

68-
mkdir -p "/run/archiso/bootmnt"
69-
mount -o bind /run/archiso/httpspace /run/archiso/bootmnt
67+
mount --mkdir -o bind /run/archiso/httpspace /run/archiso/bootmnt
7068

7169
archiso_mount_handler "${newroot}"
7270
}

system/initcpio/hooks/archiso_shutdown

Lines changed: 0 additions & 10 deletions
This file was deleted.

system/initcpio/install/archiso_kms

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,12 @@
33
# SPDX-License-Identifier: GPL-3.0-or-later
44

55
build() {
6-
add_module "amdgpu"
7-
add_module "radeon"
8-
add_module "nouveau"
9-
add_module "i915"
10-
add_module "mgag200"
11-
add_module "via-agp"
12-
add_module "sis-agp"
13-
add_module "intel-agp"
14-
15-
add_module "nvidia?"
16-
add_module "nvidia_modeset?"
17-
add_module "nvidia_uvm?"
18-
add_module "nvidia_drm?"
19-
20-
21-
if [[ $(uname -m) == i686 ]]; then
22-
add_module "amd64-agp"
23-
add_module "ati-agp"
24-
add_module "sworks-agp"
25-
add_module "ali-agp"
26-
add_module "amd-k7-agp"
27-
add_module "nvidia-agp"
28-
add_module "efficeon-agp"
29-
fi
6+
map add_checked_modules '/drivers/char/agp/' '/drivers/gpu/drm/'
307
}
318

329
help() {
3310
cat <<HELPEOF
34-
Adds all common KMS drivers to the initramfs image.
11+
Adds KMS drivers to the initramfs image. To minimize the modules in the image,
12+
add the autodetect hook too.
3513
HELPEOF
3614
}

system/initcpio/install/archiso_shutdown

Lines changed: 0 additions & 20 deletions
This file was deleted.

system/initcpio/script/archiso_shutdown

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)