View difference between Paste ID: HQ4VfNcS and a2qLzGG9
SHOW: | | - or go back to the newest paste.
1
$ fdisk -l
2
Device    Start          End   Size Type
3
/dev/sda1  2048         4096     1M BIOS boot partition
4
/dev/sda2  6144    195371534  93.2G Linux filesystem
5
6
$ btrfs subvolume list -p /
7
ID 261 gen 203517 parent 5 top level 5 path __active
8
ID 262 gen 203540 parent 261 top level 261 path home
9
ID 263 gen 203540 parent 261 top level 261 path var
10
ID 265 gen 203517 parent 261 top level 261 path usr
11
ID 424 gen 201050 parent 5 top level 5 path __snapshot/my_savepoint-2013-10-28-1382970930
12
ID 427 gen 203508 parent 5 top level 5 path __snapshot/my_savepoint-2013-11-03-1383505769
13
ID 428 gen 203508 parent 5 top level 5 path __rollback
14
15
$ btrfs subvolume get-default /
16
ID 261 gen 203517 top level 5 path __active
17
18
$ cat /etc/fstab
19
tmpfs		/tmp	tmpfs	nodev,nosuid,size=2G	0	0
20
UUID=81410cb0-62ba-408b-a5b2-a8a6354fb090 / btrfs defaults,noatime,compress=lzo	0	0 #,subvol=__active
21
shm   /dev/shm   tmpfs   nodev,nosuid   0   0
22
23
$ grub-mkrelpath /boot/initramfs-linux.img
24
/boot/initramfs-linux.img
25
26
$ cat /boot/grub/grub.cfg
27
#
28
# DO NOT EDIT THIS FILE
29
#
30
# It is automatically generated by grub-mkconfig using templates
31
# from /etc/grub.d and settings from /etc/default/grub
32
#
33
34
### BEGIN /etc/grub.d/00_header ###
35
insmod part_gpt
36
insmod part_msdos
37
if [ -s $prefix/grubenv ]; then
38
  load_env
39
fi
40
if [ "${next_entry}" ] ; then
41
   set default="${next_entry}"
42
   set next_entry=
43
   save_env next_entry
44
   set boot_once=true
45
else
46
   set default="0"
47
fi
48
49
if [ x"${feature_menuentry_id}" = xy ]; then
50
  menuentry_id_option="--id"
51
else
52
  menuentry_id_option=""
53
fi
54
55
export menuentry_id_option
56
57
if [ "${prev_saved_entry}" ]; then
58
  set saved_entry="${prev_saved_entry}"
59
  save_env saved_entry
60
  set prev_saved_entry=
61
  save_env prev_saved_entry
62
  set boot_once=true
63
fi
64
65
function savedefault {
66
  if [ -z "${boot_once}" ]; then
67
    saved_entry="${chosen}"
68
    save_env saved_entry
69
  fi
70
}
71
72
function load_video {
73
  if [ x$feature_all_video_module = xy ]; then
74
    insmod all_video
75
  else
76
    insmod efi_gop
77
    insmod efi_uga
78
    insmod ieee1275_fb
79
    insmod vbe
80
    insmod vga
81
    insmod video_bochs
82
    insmod video_cirrus
83
  fi
84
}
85
86
if [ x$feature_default_font_path = xy ] ; then
87
   font=unicode
88
else
89
insmod part_gpt
90
insmod btrfs
91
set root='hd0,gpt2'
92
if [ x$feature_platform_search_hint = xy ]; then
93
  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81410cb0-62ba-408b-a5b2-a8a6354fb090
94
else
95
  search --no-floppy --fs-uuid --set=root 81410cb0-62ba-408b-a5b2-a8a6354fb090
96
fi
97
    font="/usr/share/grub/unicode.pf2"
98
fi
99
100
if loadfont $font ; then
101
  set gfxmode=auto
102
  load_video
103
  insmod gfxterm
104
  set locale_dir=$prefix/locale
105
  set lang=en_US
106
  insmod gettext
107
fi
108
terminal_input console
109
terminal_output gfxterm
110
set timeout=5
111
### END /etc/grub.d/00_header ###
112
113
### BEGIN /etc/grub.d/10_linux ###
114
menuentry 'Arch Linux, with Linux core repo kernel' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-true-81410cb0-62ba-408b-a5b2-a8a6354fb090' {
115
	load_video
116
	set gfxpayload=keep
117
	insmod gzio
118
	insmod part_gpt
119
	insmod btrfs
120
	set root='hd0,gpt2'
121
	if [ x$feature_platform_search_hint = xy ]; then
122
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81410cb0-62ba-408b-a5b2-a8a6354fb090
123
	else
124
	  search --no-floppy --fs-uuid --set=root 81410cb0-62ba-408b-a5b2-a8a6354fb090
125
	fi
126
	echo	'Loading Linux core repo kernel ...'
127
	linux	/boot/vmlinuz-linux root=UUID=81410cb0-62ba-408b-a5b2-a8a6354fb090 rw  
128
	echo	'Loading initial ramdisk ...'
129
	initrd	/boot/initramfs-linux.img
130
}
131
menuentry 'Arch Linux, with Linux core repo kernel (Fallback initramfs)' --class arch --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-core repo kernel-fallback-81410cb0-62ba-408b-a5b2-a8a6354fb090' {
132
	load_video
133
	set gfxpayload=keep
134
	insmod gzio
135
	insmod part_gpt
136
	insmod btrfs
137
	set root='hd0,gpt2'
138
	if [ x$feature_platform_search_hint = xy ]; then
139
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt2 --hint-efi=hd0,gpt2 --hint-baremetal=ahci0,gpt2  81410cb0-62ba-408b-a5b2-a8a6354fb090
140
	else
141
	  search --no-floppy --fs-uuid --set=root 81410cb0-62ba-408b-a5b2-a8a6354fb090
142
	fi
143
	echo	'Loading Linux core repo kernel ...'
144
	linux	/boot/vmlinuz-linux root=UUID=81410cb0-62ba-408b-a5b2-a8a6354fb090 rw  
145
	echo	'Loading initial ramdisk ...'
146
	initrd	/boot/initramfs-linux-fallback.img
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/40_custom ###
158
# This file provides an easy way to add custom menu entries.  Simply type the
159
# menu entries you want to add after this comment.  Be careful not to change
160
# the 'exec tail' line above.
161
### END /etc/grub.d/40_custom ###
162
163
### BEGIN /etc/grub.d/41_custom ###
164
if [ -f  ${config_directory}/custom.cfg ]; then
165
  source ${config_directory}/custom.cfg
166
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
167
  source $prefix/custom.cfg;
168
fi
169
### END /etc/grub.d/41_custom ###
170
171
### BEGIN /etc/grub.d/60_memtest86+ ###
172
### END /etc/grub.d/60_memtest86+ ###