Skip to content

Commit 116692e

Browse files
committed
live ISO filesystem
1 parent e9bc226 commit 116692e

File tree

62 files changed

+749
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+749
-0
lines changed

airootfs/etc/hostname

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tcetlinuxiso

airootfs/etc/locale.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
LANG=C.UTF-8

airootfs/etc/localtime

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/usr/share/zoneinfo/UTC

airootfs/etc/mkinitcpio.conf

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# vim:set ft=sh
2+
# MODULES
3+
# The following modules are loaded before any boot hooks are
4+
# run. Advanced users may wish to specify all system modules
5+
# in this array. For instance:
6+
# MODULES=(piix ide_disk reiserfs)
7+
MODULES=()
8+
9+
# BINARIES
10+
# This setting includes any additional binaries a given user may
11+
# wish into the CPIO image. This is run last, so it may be used to
12+
# override the actual binaries included by a given hook
13+
# BINARIES are dependency parsed, so you may safely ignore libraries
14+
BINARIES=()
15+
16+
# FILES
17+
# This setting is similar to BINARIES above, however, files are added
18+
# as-is and are not parsed in any way. This is useful for config files.
19+
FILES=()
20+
21+
# HOOKS
22+
# This is the most important setting in this file. The HOOKS control the
23+
# modules and scripts added to the image, and what happens at boot time.
24+
# Order is important, and it is recommended that you do not change the
25+
# order in which HOOKS are added. Run 'mkinitcpio -H <hook name>' for
26+
# help on a given hook.
27+
# 'base' is _required_ unless you know precisely what you are doing.
28+
# 'udev' is _required_ in order to automatically load modules
29+
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
30+
# Examples:
31+
## This setup specifies all modules in the MODULES setting above.
32+
## No raid, lvm2, or encrypted root is needed.
33+
# HOOKS=(base)
34+
#
35+
## This setup will autodetect all modules for your system and should
36+
## work as a sane default
37+
# HOOKS=(base udev autodetect block filesystems)
38+
#
39+
## This setup will generate a 'full' image which supports most systems.
40+
## No autodetection is done.
41+
# HOOKS=(base udev block filesystems)
42+
#
43+
## This setup assembles a pata mdadm array with an encrypted root FS.
44+
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
45+
# HOOKS=(base udev block mdadm encrypt filesystems)
46+
#
47+
## This setup loads an lvm2 volume group on a usb device.
48+
# HOOKS=(base udev block lvm2 filesystems)
49+
#
50+
## NOTE: If you have /usr on a separate partition, you MUST include the
51+
# usr, fsck and shutdown hooks.
52+
HOOKS=(base udev modconf kms memdisk archiso archiso_loop_mnt archiso_pxe_common archiso_pxe_nbd archiso_pxe_http archiso_pxe_nfs block filesystems keyboard)
53+
54+
# COMPRESSION
55+
# Use this to compress the initramfs image. By default, gzip compression
56+
# is used. Use 'cat' to create an uncompressed image.
57+
#COMPRESSION="gzip"
58+
#COMPRESSION="bzip2"
59+
#COMPRESSION="lzma"
60+
COMPRESSION="xz"
61+
#COMPRESSION="lzop"
62+
#COMPRESSION="lz4"
63+
#COMPRESSION="zstd"
64+
65+
# COMPRESSION_OPTIONS
66+
# Additional options for the compressor
67+
#COMPRESSION_OPTIONS=()
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# mkinitcpio preset file for the 'linux' package on archiso
2+
3+
PRESETS=('archiso')
4+
5+
ALL_kver='/boot/vmlinuz-linux'
6+
ALL_config='/etc/mkinitcpio.conf'
7+
8+
archiso_image="/boot/initramfs-linux.img"
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# The broadcom-wl package requires some modules to be disabled in order to use
2+
# wl. Since the ISO image needs to cover many hardware cases, this file
3+
# overrides the default blacklist in /usr/lib/modprobe.d/
4+
#
5+
# If you need to use wl, you may need to delete this file, then `rmmod` any
6+
# already-loaded modules that are now blacklisted before proceeding to modprobe
7+
# wl itself.

airootfs/etc/motd.bak

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
To install Arch Linux follow the installation guide:
2+
https://wiki.archlinux.org/title/Installation_guide
3+
4+
For Wi-Fi, authenticate to the wireless network using the iwctl utility.
5+
For mobile broadband (WWAN) modems, connect with the mmcli utility.
6+
Ethernet, WLAN and WWAN interfaces using DHCP should work automatically.
7+
8+
After connecting to the internet, the installation guide can be accessed
9+
via the convenience script Installation_guide.
10+
11+
                                          
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# remove from airootfs!
2+
[Trigger]
3+
Operation = Install
4+
Operation = Upgrade
5+
Type = Package
6+
Target = pacman-mirrorlist
7+
8+
[Action]
9+
Description = Uncommenting all mirrors in /etc/pacman.d/mirrorlist...
10+
When = PostTransaction
11+
Depends = pacman-mirrorlist
12+
Depends = sed
13+
Exec = /usr/bin/sed -i "s/#Server/Server/g" /etc/pacman.d/mirrorlist
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# remove from airootfs!
2+
# As a workaround for https://bugs.archlinux.org/task/49347 , remove pacman hooks specific to the ISO build process.
3+
# If not, they would be used when pacstrap is run in the live environment.
4+
5+
[Trigger]
6+
Operation = Install
7+
Operation = Upgrade
8+
Operation = Remove
9+
Type = Package
10+
Target = *
11+
12+
[Action]
13+
Description = Work around FS#49347 by removing custom pacman hooks that are only required during ISO build...
14+
When = PostTransaction
15+
Depends = sh
16+
Depends = coreutils
17+
Depends = grep
18+
Exec = /bin/sh -c "rm -- $(grep -Frl 'remove from airootfs' /etc/pacman.d/hooks/)"

airootfs/etc/passwd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
root:x:0:0:root:/root:/usr/bin/zsh

0 commit comments

Comments
 (0)