리눅스/Arch or Manjaro

아치 리눅스 (Arch Linux) 주요 설정 파일 예시

씨실과 날실 2021. 8. 6. 09:00

[관련 게시물]

2021.06.22 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 01 - Arch Linux에 대한 소개 및 ISO 파일 다운로드

2021.06.24 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 02 - archinstall 인스톨러를 통한 설치

2021.06.30 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 03 - 사용자에 의한 Base 시스템 완전 수동 설치[UEFI/GRUB2/Swap Partition]

2021.07.05 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 04 - 사용자에 의한 Base 시스템 완전 수동 설치[UEFI/systemd-boot/Swap File]

2021.07.09 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 05 - 데스크톱 환경 설치

2021.07.12 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 06 - 시스템 언어 환경 및 형식(포맷)과 한글 입력 설정(한글 폰트 설치, IBUS/Fcitx5 입력기 설치 및 한글 입력 설정)

2021.07.14 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 07 - 버추얼박스 게스트 확장(Guest Additions) 설치

2021.07.20 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 08 - TUI 인스톨러 archfi를 통한 설치 01

2021.07.23 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 08 - TUI 인스톨러 archfi를 통한 설치 02(archdi의 Update Menu)

2021.07.29 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 08 - TUI 인스톨러 archfi를 통한 설치 03(archdi의 Install Menu 중 필수 GUI 환경 구축 과정)

2021.08.02 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 08 - TUI 인스톨러 archfi를 통한 설치 04(archdi의 Install Menu 중 각종 응용 앱 설치 과정)

2021.08.04 - [리눅스/Arch or Manjaro] - 아치 리눅스(Arch Linux) 설치 08 - TUI 인스톨러 archfi를 통한 설치 05(주요 시스템 설정 작업 및 마무리 과정)

2021.08.06 - [리눅스/Arch or Manjaro] - 아치 리눅스 (Arch Linux) 주요 설정 파일 예시

 

 

아래의 주요 설정 파일은 archinstall로 설치 시 적용되는 기본값입니다.

이하 코드에 대한 자세한 설명은 생략하겠습니다.

또한 이번 글에 대한 질문 역시 받지 않도록 하겠습니다. 궁금하신 점이 있다면 구글 검색을 이용하시기 바랍니다.

 

/etc

/etc/bash.bashrc

[study@study-virtualbox etc]$ cat -n bash.bashrc
     1	#
     2	# /etc/bash.bashrc
     3	#
     4	
     5	# If not running interactively, don't do anything
     6	[[ $- != *i* ]] && return
     7	
     8	[[ $DISPLAY ]] && shopt -s checkwinsize
     9	
    10	PS1='[\u@\h \W]\$ '
    11	
    12	case ${TERM} in
    13	  xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    14	    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
    15	
    16	    ;;
    17	  screen*)
    18	    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
    19	    ;;
    20	esac
    21	
    22	[ -r /usr/share/bash-completion/bash_completion   ] && . /usr/share/bash-completion/bash_completion
[study@study-virtualbox etc]$

 

/etc/crypttab

[study@study-virtualbox ~]$ sudo cat -n /etc/crypttab
[sudo] password for study: 
     1	# Configuration for encrypted block devices.
     2	# See crypttab(5) for details.
     3	
     4	# NOTE: Do not list your root (/) partition here, it must be set up
     5	#       beforehand by the initramfs (/etc/mkinitcpio.conf).
     6	
     7	# <name>       <device>                                     <password>              <options>
     8	# home         UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx    /etc/mypassword1
     9	# data1        /dev/sda3                                    /etc/mypassword2
    10	# data2        /dev/sda5                                    /etc/cryptfs.key
    11	# swap         /dev/sdx4                                    /dev/urandom            swap,cipher=aes-cbc-essiv:sha256,size=256
    12	# vol          /dev/sdb7                                    none
[study@study-virtualbox ~]$

 

 

/etc/fstab

[study@study-virtualbox ~]$ cat -n /etc/fstab
     1	# Static information about the filesystems.
     2	# See fstab(5) for details.
     3	
     4	# <file system> <dir> <type> <options> <dump> <pass>
     5	
     6	tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
     7	# /dev/sda2
     8	UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx	/         	ext4      	rw,relatime	0 1
     9	
    10	# /dev/sda1
    11	UUID=xxxx-xxxx      	/boot     	vfat      	rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro	0 2
    12	
[study@study-virtualbox ~]$

 

/etc/group

[study@study-virtualbox etc]$ cat -n group
     1	root:x:0:brltty,root
     2	sys:x:3:bin

- 생략 - 

    57	study:x:1000:
    58	vboxsf:x:968:
[study@study-virtualbox etc]$

 

/etc/hostname

[study@study-virtualbox ~]$ cat -n /etc/hostname
     1	study-virtualbox
[study@study-virtualbox ~]$

 

/etc/locale.conf

LANG=en_US.UTF-8

 

/etc/locale.gen

[study@study-virtualbox ~]$ cat -n /etc/locale.gen
     1	# Configuration file for locale-gen
     2	#
     3	# lists of locales that are to be generated by the locale-gen command.
     4	#
     5	# Each line is of the form:
     6	#
     7	#     <locale> <charset>
     8	#
     9	#  where <locale> is one of the locales given in /usr/share/i18n/locales
    10	#  and <charset> is one of the character sets listed in /usr/share/i18n/charmaps
    11	#
    12	#  Examples:
    13	#  en_US ISO-8859-1
    14	#  en_US.UTF-8 UTF-8
    15	#  de_DE ISO-8859-1
    16	#  de_DE@euro ISO-8859-15
    17	#
    18	#  The locale-gen command will generate all the locales,
    19	#  placing them in /usr/lib/locale.
    20	#
    21	#  A list of supported locales is included in this file.
    22	#  Uncomment the ones you need.
    23	#
    24	#aa_DJ.UTF-8 UTF-8  
    25	#aa_DJ ISO-8859-1  

- 생략 - 

   177	#en_US.UTF-8 UTF-8  
   178	#en_US ISO-8859-1  

- 생략 -

   312	#ko_KR.EUC-KR EUC-KR  
   313	#ko_KR.UTF-8 UTF-8  

- 생략 -

   512	en_US.UTF-8 UTF-8
   513	en_US.UTF-8 UTF-8
[study@study-virtualbox ~]$

 

/etc/localtime

[study@study-virtualbox ~]$ cat -n /etc/localtime
     1	TZif2UTCTZif2UTC
     2	UTC0
[study@study-virtualbox ~]$

 

 

/etc/mkinitcpio.conf

MODULES=()
BINARIES=()
FILES=()
HOOKS=(base udev autodetect keyboard keymap modconf block filesystems fsck)

 

/etc/pacman.conf

[study@study-virtualbox etc]$ cat -n pacman.conf
     1	#
     2	# /etc/pacman.conf
     3	#
     4	# See the pacman.conf(5) manpage for option and repository directives
     5	
     6	#
     7	# GENERAL OPTIONS
     8	#
     9	[options]
    10	# The following paths are commented out with their default values listed.
    11	# If you wish to use different paths, uncomment and update the paths.
    12	#RootDir     = /
    13	#DBPath      = /var/lib/pacman/
    14	#CacheDir    = /var/cache/pacman/pkg/
    15	#LogFile     = /var/log/pacman.log
    16	#GPGDir      = /etc/pacman.d/gnupg/
    17	#HookDir     = /etc/pacman.d/hooks/
    18	HoldPkg     = pacman glibc
    19	#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
    20	#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
    21	#CleanMethod = KeepInstalled
    22	Architecture = auto
    23	
    24	# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
    25	#IgnorePkg   =
    26	#IgnoreGroup =
    27	
    28	#NoUpgrade   =
    29	#NoExtract   =
    30	
    31	# Misc options
    32	#UseSyslog
    33	#Color
    34	#NoProgressBar
    35	CheckSpace
    36	#VerbosePkgLists
    37	#ParallelDownloads = 5
    38	
    39	# By default, pacman accepts packages signed by keys that its local keyring
    40	# trusts (see pacman-key and its man page), as well as unsigned packages.
    41	SigLevel    = Required DatabaseOptional
    42	LocalFileSigLevel = Optional
    43	#RemoteFileSigLevel = Required
    44	
    45	# NOTE: You must run `pacman-key --init` before first using pacman; the local
    46	# keyring can then be populated with the keys of all official Arch Linux
    47	# packagers with `pacman-key --populate archlinux`.
    48	
    49	#
    50	# REPOSITORIES
    51	#   - can be defined here or included from another file
    52	#   - pacman will search repositories in the order defined here
    53	#   - local/custom mirrors can be added here or in separate files
    54	#   - repositories listed first will take precedence when packages
    55	#     have identical names, regardless of version number
    56	#   - URLs will have $repo replaced by the name of the current repo
    57	#   - URLs will have $arch replaced by the name of the architecture
    58	#
    59	# Repository entries are of the format:
    60	#       [repo-name]
    61	#       Server = ServerName
    62	#       Include = IncludePath
    63	#
    64	# The header [repo-name] is crucial - it must be present and
    65	# uncommented to enable the repo.
    66	#
    67	
    68	# The testing repositories are disabled by default. To enable, uncomment the
    69	# repo name header and Include lines. You can add preferred servers immediately
    70	# after the header, and they will be used before the default mirrors.
    71	
    72	#[testing]
    73	#Include = /etc/pacman.d/mirrorlist
    74	
    75	[core]
    76	Include = /etc/pacman.d/mirrorlist
    77	
    78	[extra]
    79	Include = /etc/pacman.d/mirrorlist
    80	
    81	#[community-testing]
    82	#Include = /etc/pacman.d/mirrorlist
    83	
    84	[community]
    85	Include = /etc/pacman.d/mirrorlist
    86	
    87	# If you want to run 32 bit applications on your x86_64 system,
    88	# enable the multilib repositories as required here.
    89	
    90	#[multilib-testing]
    91	#Include = /etc/pacman.d/mirrorlist
    92	
    93	#[multilib]
    94	#Include = /etc/pacman.d/mirrorlist
    95	
    96	# An example of a custom package repository.  See the pacman manpage for
    97	# tips on creating your own repositories.
    98	#[custom]
    99	#SigLevel = Optional TrustAll
   100	#Server = file:///home/custompkgs
[study@study-virtualbox etc]$

 

/etc/passwd

[study@study-virtualbox etc]$ cat -n passwd
     1	root:x:0:0::/root:/bin/bash
     2	bin:x:1:1::/:/usr/bin/nologin

- 생략 - 

    25	study:x:1000:1000::/home/study:/bin/bash
    26	vboxadd:x:968:1::/var/run/vboxadd:/bin/false
[study@study-virtualbox etc]$

 

 

/etc/profile

[study@study-virtualbox ~]$ cat -n /etc/profile
     1	# /etc/profile
     2	
     3	# Set our umask
     4	umask 022
     5	
     6	# Append "$1" to $PATH when not already in.
     7	# This function API is accessible to scripts in /etc/profile.d
     8	append_path () {
     9	    case ":$PATH:" in
    10	        *:"$1":*)
    11	            ;;
    12	        *)
    13	            PATH="${PATH:+$PATH:}$1"
    14	    esac
    15	}
    16	
    17	# Append our default paths
    18	append_path '/usr/local/sbin'
    19	append_path '/usr/local/bin'
    20	append_path '/usr/bin'
    21	
    22	# Force PATH to be environment
    23	export PATH
    24	
    25	# Load profiles from /etc/profile.d
    26	if test -d /etc/profile.d/; then
    27		for profile in /etc/profile.d/*.sh; do
    28			test -r "$profile" && . "$profile"
    29		done
    30		unset profile
    31	fi
    32	
    33	# Unload our profile API functions
    34	unset -f append_path
    35	
    36	# Source global bash config, when interactive but not posix or sh mode
    37	if test "$BASH" &&\
    38	   test "$PS1" &&\
    39	   test -z "$POSIXLY_CORRECT" &&\
    40	   test "${0#-}" != sh &&\
    41	   test -r /etc/bash.bashrc
    42	then
    43		. /etc/bash.bashrc
    44	fi
    45	
    46	# Termcap is outdated, old, and crusty, kill it.
    47	unset TERMCAP
    48	
    49	# Man is much better than us at figuring this out
    50	unset MANPATH
[study@study-virtualbox ~]$

 

/etc/shells

[study@study-virtualbox etc]$ cat -n shells
     1	# Pathnames of valid login shells.
     2	# See shells(5) for details.
     3	
     4	/bin/sh
     5	/bin/bash
[study@study-virtualbox etc]$

 

/etc/sudoers

[study@study-virtualbox ~]$ sudo cat -n /etc/sudoers
[sudo] password for study: 
     1	## sudoers file.
     2	##
     3	## This file MUST be edited with the 'visudo' command as root.
     4	## Failure to use 'visudo' may result in syntax or file permission errors
     5	## that prevent sudo from running.
     6	##
     7	## See the sudoers man page for the details on how to write a sudoers file.
     8	##
     9	
    10	##
    11	## Host alias specification
    12	##
    13	## Groups of machines. These may include host names (optionally with wildcards),
    14	## IP addresses, network numbers or netgroups.
    15	# Host_Alias	WEBSERVERS = www1, www2, www3
    16	
    17	##
    18	## User alias specification
    19	##
    20	## Groups of users.  These may consist of user names, uids, Unix groups,
    21	## or netgroups.
    22	# User_Alias	ADMINS = millert, dowdy, mikef
    23	
    24	##
    25	## Cmnd alias specification
    26	##
    27	## Groups of commands.  Often used to group related commands together.
    28	# Cmnd_Alias	PROCESSES = /usr/bin/nice, /bin/kill, /usr/bin/renice, \
    29	# 			    /usr/bin/pkill, /usr/bin/top
    30	# Cmnd_Alias	REBOOT = /sbin/halt, /sbin/reboot, /sbin/poweroff
    31	
    32	##
    33	## Defaults specification
    34	##
    35	## You may wish to keep some of the following environment variables
    36	## when running commands via sudo.
    37	##
    38	## Locale settings
    39	# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET"
    40	##
    41	## Run X applications through sudo; HOME is used to find the
    42	## .Xauthority file.  Note that other programs use HOME to find   
    43	## configuration files and this may lead to privilege escalation!
    44	# Defaults env_keep += "HOME"
    45	##
    46	## X11 resource path settings
    47	# Defaults env_keep += "XAPPLRESDIR XFILESEARCHPATH XUSERFILESEARCHPATH"
    48	##
    49	## Desktop path settings
    50	# Defaults env_keep += "QTDIR KDEDIR"
    51	##
    52	## Allow sudo-run commands to inherit the callers' ConsoleKit session
    53	# Defaults env_keep += "XDG_SESSION_COOKIE"
    54	##
    55	## Uncomment to enable special input methods.  Care should be taken as
    56	## this may allow users to subvert the command being run via sudo.
    57	# Defaults env_keep += "XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
    58	##
    59	## Uncomment to use a hard-coded PATH instead of the user's to find commands
    60	# Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
    61	##
    62	## Uncomment to send mail if the user does not enter the correct password.
    63	# Defaults mail_badpass
    64	##
    65	## Uncomment to enable logging of a command's output, except for
    66	## sudoreplay and reboot.  Use sudoreplay to play back logged sessions.
    67	# Defaults log_output
    68	# Defaults!/usr/bin/sudoreplay !log_output
    69	# Defaults!/usr/local/bin/sudoreplay !log_output
    70	# Defaults!REBOOT !log_output
    71	
    72	##
    73	## Runas alias specification
    74	##
    75	
    76	##
    77	## User privilege specification
    78	##
    79	root ALL=(ALL) ALL
    80	
    81	## Uncomment to allow members of group wheel to execute any command
    82	# %wheel ALL=(ALL) ALL
    83	
    84	## Same thing without a password
    85	# %wheel ALL=(ALL) NOPASSWD: ALL
    86	
    87	## Uncomment to allow members of group sudo to execute any command
    88	# %sudo	ALL=(ALL) ALL
    89	
    90	## Uncomment to allow any user to run sudo if they know the password
    91	## of the user they are running the command as (root by default).
    92	# Defaults targetpw  # Ask for the password of the target user
    93	# ALL ALL=(ALL) ALL  # WARNING: only use this together with 'Defaults targetpw'
    94	
    95	## Read drop-in files from /etc/sudoers.d
    96	@includedir /etc/sudoers.d
    97	study ALL=(ALL) ALL
[study@study-virtualbox ~]$

 

/etc/vconsole.conf

[study@study-virtualbox ~]$ cat -n /etc/vconsole.conf
     1	KEYMAP=us
[study@study-virtualbox ~]$

 


/etc/default

/etc/default/grub

[study@study-virtualbox ~]$ sudo cat -n /etc/default/grub
     1	# GRUB boot loader configuration
     2	
     3	GRUB_DEFAULT=0
     4	GRUB_TIMEOUT=5
     5	GRUB_DISTRIBUTOR="Arch"
     6	GRUB_CMDLINE_LINUX_DEFAULT="loglevel=3 quiet"
     7	GRUB_CMDLINE_LINUX=""
     8	
     9	# Preload both GPT and MBR modules so that they are not missed
    10	GRUB_PRELOAD_MODULES="part_gpt part_msdos"
    11	
    12	# Uncomment to enable booting from LUKS encrypted devices
    13	#GRUB_ENABLE_CRYPTODISK=y
    14	
    15	# Set to 'countdown' or 'hidden' to change timeout behavior,
    16	# press ESC key to display menu.
    17	GRUB_TIMEOUT_STYLE=menu
    18	
    19	# Uncomment to use basic console
    20	GRUB_TERMINAL_INPUT=console
    21	
    22	# Uncomment to disable graphical terminal
    23	#GRUB_TERMINAL_OUTPUT=console
    24	
    25	# The resolution used on graphical terminal
    26	# note that you can use only modes which your graphic card supports via VBE
    27	# you can see them in real GRUB with the command `vbeinfo'
    28	GRUB_GFXMODE=auto
    29	
    30	# Uncomment to allow the kernel use the same resolution used by grub
    31	GRUB_GFXPAYLOAD_LINUX=keep
    32	
    33	# Uncomment if you want GRUB to pass to the Linux kernel the old parameter
    34	# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx"
    35	#GRUB_DISABLE_LINUX_UUID=true
    36	
    37	# Uncomment to disable generation of recovery mode menu entries
    38	GRUB_DISABLE_RECOVERY=true
    39	
    40	# Uncomment and set to the desired menu colors.  Used by normal and wallpaper
    41	# modes only.  Entries specified as foreground/background.
    42	#GRUB_COLOR_NORMAL="light-blue/black"
    43	#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"
    44	
    45	# Uncomment one of them for the gfx desired, a image background or a gfxtheme
    46	#GRUB_BACKGROUND="/path/to/wallpaper"
    47	#GRUB_THEME="/path/to/gfxtheme"
    48	
    49	# Uncomment to get a beep at GRUB start
    50	#GRUB_INIT_TUNE="480 440 1"
    51	
    52	# Uncomment to make GRUB remember the last selection. This requires
    53	# setting 'GRUB_DEFAULT=saved' above.
    54	#GRUB_SAVEDEFAULT=true
    55	
    56	# Uncomment to disable submenus in boot menu
    57	#GRUB_DISABLE_SUBMENU=y
[study@study-virtualbox ~]$

 

 

 

/etc/pacman.d

/etc/pacman.d/mirrorlist

[study@study-virtualbox ~]$ cat -n /etc/pacman.d/mirrorlist
     1	## South Korea
     2	Server = https://ftp.lanet.kr/pub/archlinux/$repo/os/$arch
     3	## South Korea
     4	Server = https://mirror.premi.st/archlinux/$repo/os/$arch
     5	## South Korea
     6	Server = https://mirror.anigil.com/archlinux/$repo/os/$arch
     7	## South Korea
     8	Server = https://ftp.harukasan.org/archlinux/$repo/os/$arch
[study@study-virtualbox ~]$

 

/etc/skel

/etc/skel/.bashrc

[study@study-virtualbox ~]$ cat -n /etc/skel/.bashrc
     1	#
     2	# ~/.bashrc
     3	#
     4	
     5	# If not running interactively, don't do anything
     6	[[ $- != *i* ]] && return
     7	
     8	alias ls='ls --color=auto'
     9	PS1='[\u@\h \W]\$ '
[study@study-virtualbox ~]$

 

 

 

 


/boot/grub

/boot/grub/grub.cfg

[study@study-virtualbox ~]$ cat -n /boot/grub/grub.cfg
     1	#
     2	# DO NOT EDIT THIS FILE
     3	#
     4	# It is automatically generated by grub-mkconfig using templates
     5	# from /etc/grub.d and settings from /etc/default/grub
     6	#
     7	
     8	### BEGIN /etc/grub.d/00_header ###
     9	insmod part_gpt
    10	insmod part_msdos
    11	if [ -s $prefix/grubenv ]; then
    12	  load_env
    13	fi
    14	if [ "${next_entry}" ] ; then
    15	   set default="${next_entry}"
    16	   set next_entry=
    17	   save_env next_entry
    18	   set boot_once=true
    19	else
    20	   set default="0"
    21	fi
    22	
    23	if [ x"${feature_menuentry_id}" = xy ]; then
    24	  menuentry_id_option="--id"
    25	else
    26	  menuentry_id_option=""
    27	fi
    28	
    29	export menuentry_id_option
    30	
    31	if [ "${prev_saved_entry}" ]; then
    32	  set saved_entry="${prev_saved_entry}"
    33	  save_env saved_entry
    34	  set prev_saved_entry=
    35	  save_env prev_saved_entry
    36	  set boot_once=true
    37	fi
    38	
    39	function savedefault {
    40	  if [ -z "${boot_once}" ]; then
    41	    saved_entry="${chosen}"
    42	    save_env saved_entry
    43	  fi
    44	}
    45	
    46	function load_video {
    47	  if [ x$feature_all_video_module = xy ]; then
    48	    insmod all_video
    49	  else
    50	    insmod efi_gop
    51	    insmod efi_uga
    52	    insmod ieee1275_fb
    53	    insmod vbe
    54	    insmod vga
    55	    insmod video_bochs
    56	    insmod video_cirrus
    57	  fi
    58	}
    59	
    60	if [ x$feature_default_font_path = xy ] ; then
    61	   font=unicode
    62	else
    63	insmod part_gpt
    64	insmod ext2
    65	set root='hd0,gpt2'
    66	if [ x$feature_platform_search_hint = xy ]; then
    67	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  e91c99e1-ea7f-4f16-8b35-713ed62a0bed
    68	else
    69	  search --no-floppy --fs-uuid --set=root e91c99e1-ea7f-4f16-8b35-713ed62a0bed
    70	fi
    71	    font="/usr/share/grub/unicode.pf2"
    72	fi
    73	
    74	if loadfont $font ; then
    75	  set gfxmode=auto
    76	  load_video
    77	  insmod gfxterm
    78	  set locale_dir=$prefix/locale
    79	  set lang=en_US
    80	  insmod gettext
    81	fi
    82	terminal_input console
    83	terminal_output gfxterm
    84	if [ x$feature_timeout_style = xy ] ; then
    85	  set timeout_style=menu
    86	  set timeout=5
    87	# Fallback normal timeout code in case the timeout_style feature is
    88	# unavailable.
    89	else
    90	  set timeout=5
    91	fi
    92	### END /etc/grub.d/00_header ###
    93	
    94	### BEGIN /etc/grub.d/10_linux ###
    95	menuentry 'Arch Linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-e91c99e1-ea7f-4f16-8b35-713ed62a0bed' {
    96		load_video
    97		set gfxpayload=keep
    98		insmod gzio
    99		insmod part_gpt
   100		insmod fat
   101		set root='hd0,gpt1'
   102		if [ x$feature_platform_search_hint = xy ]; then
   103		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  7B26-61DA
   104		else
   105		  search --no-floppy --fs-uuid --set=root 7B26-61DA
   106		fi
   107		echo	'Loading Linux linux ...'
   108		linux	/vmlinuz-linux root=UUID=e91c99e1-ea7f-4f16-8b35-713ed62a0bed rw  loglevel=3 quiet
   109		echo	'Loading initial ramdisk ...'
   110		initrd	/initramfs-linux.img
   111	}
   112	submenu 'Advanced options for Arch Linux' $menuentry_id_option 'gnulinux-advanced-e91c99e1-ea7f-4f16-8b35-713ed62a0bed' {
   113		menuentry 'Arch Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-advanced-e91c99e1-ea7f-4f16-8b35-713ed62a0bed' {
   114			load_video
   115			set gfxpayload=keep
   116			insmod gzio
   117			insmod part_gpt
   118			insmod fat
   119			set root='hd0,gpt1'
   120			if [ x$feature_platform_search_hint = xy ]; then
   121			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  7B26-61DA
   122			else
   123			  search --no-floppy --fs-uuid --set=root 7B26-61DA
   124			fi
   125			echo	'Loading Linux linux ...'
   126			linux	/vmlinuz-linux root=UUID=e91c99e1-ea7f-4f16-8b35-713ed62a0bed rw  loglevel=3 quiet
   127			echo	'Loading initial ramdisk ...'
   128			initrd	/initramfs-linux.img
   129		}
   130		menuentry 'Arch Linux, with Linux linux (fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-linux-fallback-e91c99e1-ea7f-4f16-8b35-713ed62a0bed' {
   131			load_video
   132			set gfxpayload=keep
   133			insmod gzio
   134			insmod part_gpt
   135			insmod fat
   136			set root='hd0,gpt1'
   137			if [ x$feature_platform_search_hint = xy ]; then
   138			  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  7B26-61DA
   139			else
   140			  search --no-floppy --fs-uuid --set=root 7B26-61DA
   141			fi
   142			echo	'Loading Linux linux ...'
   143			linux	/vmlinuz-linux root=UUID=e91c99e1-ea7f-4f16-8b35-713ed62a0bed rw  loglevel=3 quiet
   144			echo	'Loading initial ramdisk ...'
   145			initrd	/initramfs-linux-fallback.img
   146		}
   147	}
   148	
   149	### END /etc/grub.d/10_linux ###
   150	
   151	### BEGIN /etc/grub.d/20_linux_xen ###
   152	### END /etc/grub.d/20_linux_xen ###
   153	
   154	### BEGIN /etc/grub.d/30_os-prober ###
   155	### END /etc/grub.d/30_os-prober ###
   156	
   157	### BEGIN /etc/grub.d/30_uefi-firmware ###
   158	menuentry 'UEFI Firmware Settings' $menuentry_id_option 'uefi-firmware' {
   159		fwsetup
   160	}
   161	### END /etc/grub.d/30_uefi-firmware ###
   162	
   163	### BEGIN /etc/grub.d/40_custom ###
   164	# This file provides an easy way to add custom menu entries.  Simply type the
   165	# menu entries you want to add after this comment.  Be careful not to change
   166	# the 'exec tail' line above.
   167	### END /etc/grub.d/40_custom ###
   168	
   169	### BEGIN /etc/grub.d/41_custom ###
   170	if [ -f  ${config_directory}/custom.cfg ]; then
   171	  source ${config_directory}/custom.cfg
   172	elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
   173	  source $prefix/custom.cfg
   174	fi
   175	### END /etc/grub.d/41_custom ###
[study@study-virtualbox ~]$