Guest User

Untitled

a guest
Sep 18th, 2025
30
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.92 KB | None | 0 0
  1. diff --git a/archiso/mkarchiso b/archiso/mkarchiso
  2. index 8f59a71..43376d1 100755
  3. --- a/archiso/mkarchiso
  4. +++ b/archiso/mkarchiso
  5. @@ -510,8 +510,9 @@ _make_boot_on_fat() {
  6. _msg_info "Preparing kernel and initramfs for the FAT file system..."
  7. mmd -i "${efibootimg}" \
  8. "::/${install_dir}" "::/${install_dir}/boot" "::/${install_dir}/boot/${arch}"
  9. - mcopy -i "${efibootimg}" "${pacstrap_dir}/boot/vmlinuz-"* \
  10. + mcopy -i "${efibootimg}" "${pacstrap_dir}/boot/vmlinux"* \
  11. "${pacstrap_dir}/boot/initramfs-"*".img" "::/${install_dir}/boot/${arch}/"
  12. + mcopy -i "${work_dir}/efiboot.img" "${pacstrap_dir}/boot/sc8280xp-lenovo-thinkpad-x13s.dtb" "::/${install_dir}/boot/${arch}/"
  13. if (( need_external_ucodes )); then
  14. for ucode_image in "${ucodes[@]}"; do
  15. if [[ -e "${pacstrap_dir}/boot/${ucode_image}" ]]; then
  16. @@ -851,8 +852,9 @@ _make_bootmode_uefi.systemd-boot() {
  17. efiboot_files+=("${pacstrap_dir}/usr/lib/systemd/boot/efi/systemd-boot${uefi_arch[$arch],,}.efi"
  18. "${pacstrap_dir}/usr/share/edk2-shell/${uefi_arch[$arch],,}/Shell_Full.efi"
  19. "${work_dir}/loader/"
  20. - "${pacstrap_dir}/boot/vmlinuz-"*
  21. + "${pacstrap_dir}/boot/vmlinux"*
  22. "${pacstrap_dir}/boot/initramfs-"*".img"
  23. + "${pacstrap_dir}/boot/sc8280xp-lenovo-thinkpad-x13s.dtb"
  24. "${_available_ucodes[@]}")
  25.  
  26. # Files specific to x86_64: IA32 UEFI binaries for mixed mode booting, memtest86+
  27. diff --git a/configs/releng/airootfs/etc/mkinitcpio.conf b/configs/releng/airootfs/etc/mkinitcpio.conf
  28. new file mode 100644
  29. index 0000000..0499dcb
  30. --- /dev/null
  31. +++ b/configs/releng/airootfs/etc/mkinitcpio.conf
  32. @@ -0,0 +1,91 @@
  33. +# vim:set ft=sh
  34. +# MODULES
  35. +# The following modules are loaded before any boot hooks are
  36. +# run. Advanced users may wish to specify all system modules
  37. +# in this array. For instance:
  38. +# MODULES=(piix ide_disk reiserfs)
  39. +MODULES=(nvme
  40. + phy_qcom_qmp_pcie
  41. + pcie_qcom
  42. + i2c_hid_of
  43. + i2c_qcom_geni
  44. + leds_qcom_lpg
  45. + pwm_bl
  46. + qrtr
  47. + pmic_glink_altmode
  48. + gpio_sbu_mux
  49. + phy_qcom_qmp_combo
  50. + gpucc_sc8280xp
  51. + dispcc_sc8280xp
  52. + panel_edp
  53. + msm
  54. + phy_qcom_edp
  55. + qcom_q6v5_pas
  56. +)
  57. +
  58. +# BINARIES
  59. +# This setting includes any additional binaries a given user may
  60. +# wish into the CPIO image. This is run last, so it may be used to
  61. +# override the actual binaries included by a given hook
  62. +# BINARIES are dependency parsed, so you may safely ignore libraries
  63. +BINARIES=()
  64. +
  65. +# FILES
  66. +# This setting is similar to BINARIES above, however, files are added
  67. +# as-is and are not parsed in any way. This is useful for config files.
  68. +FILES=("/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcadsp8280.mbn"
  69. + "/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qccdsp8280.mbn"
  70. + "/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcdxkmsuc8280.mbn"
  71. + "/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcvss8280.mbn"
  72. + "/lib/firmware/qcom/sc8280xp/LENOVO/21BX/qcslpi8280.mbn"
  73. + "/lib/firmware/qcom/a660_sqe.fw"
  74. + "/lib/firmware/qcom/a660_gmu.bin"
  75. +)
  76. +
  77. +# HOOKS
  78. +# This is the most important setting in this file. The HOOKS control the
  79. +# modules and scripts added to the image, and what happens at boot time.
  80. +# Order is important, and it is recommended that you do not change the
  81. +# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
  82. +# help on a given hook.
  83. +# 'base' is _required_ unless you know precisely what you are doing.
  84. +# 'udev' is _required_ in order to automatically load modules
  85. +# 'filesystems' is _required_ unless you specify your fs modules in MODULES
  86. +# Examples:
  87. +## This setup specifies all modules in the MODULES setting above.
  88. +## No raid, lvm2, or encrypted root is needed.
  89. +# HOOKS=(base)
  90. +#
  91. +## This setup will autodetect all modules for your system and should
  92. +## work as a sane default
  93. +# HOOKS=(base udev autodetect block filesystems)
  94. +#
  95. +## This setup will generate a 'full' image which supports most systems.
  96. +## No autodetection is done.
  97. +# HOOKS=(base udev block filesystems)
  98. +#
  99. +## This setup assembles a pata mdadm array with an encrypted root FS.
  100. +## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
  101. +# HOOKS=(base udev block mdadm encrypt filesystems)
  102. +#
  103. +## This setup loads an lvm2 volume group on a usb device.
  104. +# HOOKS=(base udev block lvm2 filesystems)
  105. +#
  106. +## NOTE: If you have /usr on a separate partition, you MUST include the
  107. +# usr, fsck and shutdown hooks.
  108. +HOOKS=(base udev modconf archiso_shutdown archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs archiso_kms block filesystems keyboard)
  109. +
  110. +# COMPRESSION
  111. +# Use this to compress the initramfs image. By default, gzip compression
  112. +# is used. Use 'cat' to create an uncompressed image.
  113. +#COMPRESSION="gzip"
  114. +#COMPRESSION="bzip2"
  115. +#COMPRESSION="lzma"
  116. +#COMPRESSION="xz"
  117. +#COMPRESSION="lzop"
  118. +#COMPRESSION="lz4"
  119. +#COMPRESSION="zstd"
  120. +
  121. +# COMPRESSION_OPTIONS
  122. +# Additional options for the compressor
  123. +#COMPRESSION_OPTIONS=()
  124. diff --git a/configs/releng/airootfs/etc/mkinitcpio.d/linux-x13s.preset b/configs/releng/airootfs/etc/mkinitcpio.d/linux-x13s.preset
  125. new file mode 100644
  126. index 0000000..d84069e
  127. --- /dev/null
  128. +++ b/configs/releng/airootfs/etc/mkinitcpio.d/linux-x13s.preset
  129. @@ -0,0 +1,8 @@
  130. +# mkinitcpio preset file for the 'linux-x13s' package on archiso
  131. +
  132. +PRESETS=('archiso')
  133. +
  134. +ALL_kver='/boot/vmlinux'
  135. +ALL_config='/etc/mkinitcpio.conf'
  136. +
  137. +archiso_image="/boot/initramfs-linux.img"
  138. diff --git a/configs/releng/airootfs/etc/mkinitcpio.d/linux.preset b/configs/releng/airootfs/etc/mkinitcpio.d/linux.preset
  139. deleted file mode 100644
  140. index 8e85205..0000000
  141. --- a/configs/releng/airootfs/etc/mkinitcpio.d/linux.preset
  142. +++ /dev/null
  143. @@ -1,8 +0,0 @@
  144. -# mkinitcpio preset file for the 'linux' package on archiso
  145. -
  146. -PRESETS=('archiso')
  147. -
  148. -ALL_kver='/boot/vmlinuz-linux'
  149. -archiso_config='/etc/mkinitcpio.conf.d/archiso.conf'
  150. -
  151. -archiso_image="/boot/initramfs-linux.img"
  152. diff --git a/configs/releng/efiboot/loader/entries/01-archiso-linux.conf b/configs/releng/efiboot/loader/entries/01-archiso-linux.conf
  153. index c35f663..1259003 100644
  154. --- a/configs/releng/efiboot/loader/entries/01-archiso-linux.conf
  155. +++ b/configs/releng/efiboot/loader/entries/01-archiso-linux.conf
  156. @@ -1,5 +1,5 @@
  157. title Arch Linux install medium (%ARCH%, UEFI)
  158. sort-key 01
  159. -linux /%INSTALL_DIR%/boot/%ARCH%/vmlinuz-linux
  160. +linux /%INSTALL_DIR%/boot/%ARCH%/vmlinux
  161. initrd /%INSTALL_DIR%/boot/%ARCH%/initramfs-linux.img
  162. -options archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID%
  163. +options dtb=/%INSTALL_DIR%/boot/aarch64/sc8280xp-lenovo-thinkpad-x13s.dtb archisobasedir=%INSTALL_DIR% archisosearchuuid=%ARCHISO_UUID% efi=noruntime pd_ignore_unused clk_ignore_unused arm64.nopauth
  164. diff --git a/configs/releng/packages.aarch64 b/configs/releng/packages.aarch64
  165. new file mode 100644
  166. index 0000000..eae0cce
  167. --- /dev/null
  168. +++ b/configs/releng/packages.aarch64
  169. @@ -0,0 +1,121 @@
  170. +# TODO: might need archlinuxarm-keyring and archlinux-keyring (note that archlinux-keyring has never existed in the x86_64 iso installer)
  171. +alsa-utils
  172. +amd-ucode
  173. +arch-install-scripts
  174. +archinstall
  175. +archlinuxarm-keyring
  176. +base
  177. +bind-tools
  178. +brltty
  179. +#broadcom-wl
  180. +btrfs-progs
  181. +clonezilla
  182. +#cloud-init
  183. +crda
  184. +cryptsetup
  185. +darkhttpd
  186. +ddrescue
  187. +dhclient
  188. +dhcpcd
  189. +diffutils
  190. +dmraid
  191. +dnsmasq
  192. +dosfstools
  193. +e2fsprogs
  194. +#edk2-shell
  195. +efibootmgr
  196. +erofs-utils
  197. +espeakup
  198. +ethtool
  199. +exfatprogs
  200. +f2fs-tools
  201. +fatresize
  202. +fsarchiver
  203. +gnu-netcat
  204. +gpart
  205. +gpm
  206. +gptfdisk
  207. +grml-zsh-config
  208. +hdparm
  209. +#intel-ucode
  210. +#ipw2100-fw
  211. +#ipw2200-fw
  212. +irssi
  213. +iw
  214. +iwd
  215. +jfsutils
  216. +kitty-terminfo
  217. +less
  218. +lftp
  219. +libfido2
  220. +libusb-compat
  221. +linux-atm
  222. +linux-firmware
  223. +linux-firmware-qcom
  224. +livecd-sounds
  225. +lsscsi
  226. +lvm2
  227. +lynx
  228. +man-db
  229. +man-pages
  230. +mc
  231. +mdadm
  232. +#memtest86+
  233. +mkinitcpio
  234. +mkinitcpio-archiso
  235. +mkinitcpio-nfs-utils
  236. +modemmanager
  237. +mtools
  238. +nano
  239. +nbd
  240. +ndisc6
  241. +nfs-utils
  242. +nilfs-utils
  243. +nmap
  244. +ntfs-3g
  245. +nvme-cli
  246. +openconnect
  247. +openssh
  248. +openvpn
  249. +partclone
  250. +parted
  251. +partimage
  252. +pcsclite
  253. +ppp
  254. +pptpclient
  255. +pv
  256. +qemu-guest-agent
  257. +#reflector
  258. +#rp-pppoe
  259. +rsync
  260. +rxvt-unicode-terminfo
  261. +screen
  262. +sdparm
  263. +sg3_utils
  264. +smartmontools
  265. +squashfs-tools
  266. +sudo
  267. +#syslinux
  268. +systemd-resolvconf
  269. +tcpdump
  270. +terminus-font
  271. +testdisk
  272. +tmux
  273. +tpm2-tss
  274. +udftools
  275. +usb_modeswitch
  276. +usbmuxd
  277. +usbutils
  278. +vim
  279. +#virtualbox-guest-utils-nox
  280. +vpnc
  281. +wireless-regdb
  282. +wireless_tools
  283. +wpa_supplicant
  284. +wvdial
  285. +xfsprogs
  286. +xl2tpd
  287. +zsh
  288. +
  289. +# Custom Packages go here
  290. +linux-x13s
  291. diff --git a/configs/releng/pacman.conf b/configs/releng/pacman.conf
  292. index e7e6497..a3dab07 100644
  293. --- a/configs/releng/pacman.conf
  294. +++ b/configs/releng/pacman.conf
  295. @@ -84,6 +84,15 @@ Include = /etc/pacman.d/mirrorlist
  296. [extra]
  297. Include = /etc/pacman.d/mirrorlist
  298.  
  299. +[alarm]
  300. +Include = /etc/pacman.d/mirrorlist
  301. +
  302. +[aur]
  303. +Include = /etc/pacman.d/mirrorlist
  304. +
  305. +[ironrobin-x13s]
  306. +Server = https://github.com/ironrobin/x13s-alarm/releases/download/packages
  307. +
  308. # If you want to run 32 bit applications on your x86_64 system,
  309. # enable the multilib repositories as required here.
  310.  
  311. diff --git a/configs/releng/profiledef.sh b/configs/releng/profiledef.sh
  312. index 7bd3040..d284b80 100644
  313. --- a/configs/releng/profiledef.sh
  314. +++ b/configs/releng/profiledef.sh
  315. @@ -8,9 +8,8 @@ iso_application="Arch Linux Live/Rescue DVD"
  316. iso_version="$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
  317. install_dir="arch"
  318. buildmodes=('iso')
  319. -bootmodes=('bios.syslinux'
  320. - 'uefi.systemd-boot')
  321. -arch="x86_64"
  322. +bootmodes=('uefi.systemd-boot')
  323. +arch='aarch64'
  324. pacman_conf="pacman.conf"
  325. airootfs_image_type="squashfs"
  326. airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
Advertisement
Add Comment
Please, Sign In to add comment