Skip to content

Commit 3829cb6

Browse files
committed
v1.1.6 - multiple improvements
1 parent 9570469 commit 3829cb6

File tree

4 files changed

+29
-14
lines changed

4 files changed

+29
-14
lines changed

README.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -596,12 +596,12 @@ <h1>Actions</h1>
596596
<dl class="docutils">
597597
<dt><tt class="docutils literal">disable</tt></dt>
598598
<dd>Remove ramroot from <em>/etc/mkinitcpio.conf</em> HOOKS.
599-
Remove ext4 and zram from <em>/etc/mkinitcpio.conf</em> MODULES.
599+
Remove ext4, vfat, and zram from <em>/etc/mkinitcpio.conf</em> MODULES.
600600
Rebuild linux cpio boot image.</dd>
601601
<dt><tt class="docutils literal">enable</tt></dt>
602602
<dd>Rebuild build and runtime hooks in <em>/usr/lib/initcpio</em>.
603603
Add ramroot to <em>/etc/mkinitcpio.conf</em> HOOKS.
604-
Add ext4 and zram to <em>/etc/mkinitcpio.conf</em> MODULES.
604+
Add ext4, vfat, and zram to <em>/etc/mkinitcpio.conf</em> MODULES.
605605
Rebuild linux cpio boot image.</dd>
606606
<dt><tt class="docutils literal">remove</tt></dt>
607607
<dd>Disable ramroot.
@@ -628,7 +628,7 @@ <h1>Options</h1>
628628
<dt><tt class="docutils literal"><span class="pre">-K,</span> <span class="pre">--keep</span></tt></dt>
629629
<dd>Keep copies of new build and runtime hooks in <em>~/.cache/ramroot</em>.</dd>
630630
<dt><tt class="docutils literal"><span class="pre">-M,</span> <span class="pre">--message</span></tt></dt>
631-
<dd>Print 'Arch on RAM' message at login by using custom <em>/etc/issue</em>.</dd>
631+
<dd>Print 'Arch on RAM' message at tty login by using custom <em>/etc/issue</em>.</dd>
632632
<dt><tt class="docutils literal"><span class="pre">-N,</span> <span class="pre">--no</span></tt></dt>
633633
<dd>Change startup prompt default to not load filesystem to RAM.</dd>
634634
<dt><tt class="docutils literal"><span class="pre">-r,</span> <span class="pre">--root</span> &lt;UUID&gt;</tt></dt>

README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,13 @@ Action performed by ramroot; one must be specified.
6767

6868
``disable``
6969
Remove ramroot from */etc/mkinitcpio.conf* HOOKS.
70-
Remove ext4 and zram from */etc/mkinitcpio.conf* MODULES.
70+
Remove ext4, vfat, and zram from */etc/mkinitcpio.conf* MODULES.
7171
Rebuild linux cpio boot image.
7272

7373
``enable``
7474
Rebuild build and runtime hooks in */usr/lib/initcpio*.
7575
Add ramroot to */etc/mkinitcpio.conf* HOOKS.
76-
Add ext4 and zram to */etc/mkinitcpio.conf* MODULES.
76+
Add ext4, vfat, and zram to */etc/mkinitcpio.conf* MODULES.
7777
Rebuild linux cpio boot image.
7878

7979
``remove``
@@ -108,7 +108,7 @@ All are optional (although *--root* may be required as noted below).
108108
Keep copies of new build and runtime hooks in *~/.cache/ramroot*.
109109

110110
``-M, --message``
111-
Print 'Arch on RAM' message at login by using custom */etc/issue*.
111+
Print 'Arch on RAM' message at tty login by using custom */etc/issue*.
112112

113113
``-N, --no``
114114
Change startup prompt default to not load filesystem to RAM.

lib/man/ramroot.8

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.TH RAMROOT 8 "November 2017" "ramroot 1.1.6" "Ramroot Manual"
1+
.TH RAMROOT 8 "December 2017" "ramroot 1.1.6" "Ramroot Manual"
22
.SH NAME
33
ramroot \- load root filesystem entirely to RAM during boot
44
.SH SYNOPSIS
@@ -30,14 +30,16 @@ Action performed by ramroot; one must be specified.
3030
\fBdisable\fR
3131
.br
3232
Remove \fBramroot\fR from \fI/etc/mkinitcpio.conf\fR HOOKS.
33-
Remove \fBext4\fR and \fBzram\fR from \fI/etc/mkinitcpio.conf\fR MODULES.
33+
Remove \fBext4\fR, \fBvfat\fR, and \fBzram\fR from
34+
\fI/etc/mkinitcpio.conf\fR MODULES.
3435
Rebuild linux cpio boot image.
3536
.TP
3637
\fBenable\fR
3738
.br
3839
Rebuild build and runtime hooks in \fI/usr/lib/initcpio\fR.
3940
Add \fBramroot\fR to \fI/etc/mkinitcpio.conf\fR HOOKS.
40-
Add \fBext4\fR and \fBzram\fR to \fI/etc/mkinitcpio.conf\fR MODULES.
41+
Add \fBext4\fR, \fBvfat\fR, and \fBzram\fR to
42+
\fI/etc/mkinitcpio.conf\fR MODULES.
4143
Rebuild linux cpio boot image.
4244
.TP
4345
\fBremove\fR
@@ -69,7 +71,7 @@ Display help text and exit.
6971
Keep copies of new build and runtime hooks in \fI~/.cache/ramroot\fR.
7072
.TP
7173
\fB\-M\fR, \fB\-\-message\fR
72-
Print 'Arch on RAM' message at login by using custom \fI/etc/issue\fR.
74+
Print 'Arch on RAM' message tty at login by using custom \fI/etc/issue\fR.
7375
.TP
7476
\fB\-N\fR, \fB\-\-no\fR
7577
Change startup prompt default to not load filesystem to RAM.

ramroot

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ SYNOPSIS
1515
ACTIONS
1616
disable
1717
Remove ramroot from /etc/mkinitcpio.conf HOOKS.
18-
Remove ext4 and zram from /etc/mkinitcpio.conf MODULES.
18+
Remove ext4, vfat, and zram from /etc/mkinitcpio.conf MODULES.
1919
Rebuild linux cpio boot image.
2020
2121
enable
2222
Rebuild build and runtime hooks in /usr/lib/initcpio.
2323
Add ramroot to /etc/mkinitcpio.conf HOOKS.
24-
Add ext4 and zram to /etc/mkinitcpio.conf MODULES.
24+
Add ext4, vfat, and zram to /etc/mkinitcpio.conf MODULES.
2525
Rebuild linux cpio boot image.
2626
2727
remove
@@ -49,7 +49,7 @@ OPTIONS
4949
Keep copies of new build and runtime hooks in ~/.cache/ramroot.
5050
5151
-M, --message
52-
Print 'Arch on RAM' message at login by using custom /etc/issue.
52+
Print 'Arch on RAM' message at tty login by using custom /etc/issue.
5353
5454
-N, --no
5555
Change startup prompt default to not load filesystem to RAM.
@@ -96,7 +96,7 @@ promptDefault='yes'
9696
##======================== ramroot_enable() ========================##
9797
# Generate new build and runtime hooks using local UUID of root partition.
9898
# Copy new hooks to /usr/lib/initcpio.
99-
# Add ext4 and zram to /etc/mkinitcpio.conf MODULES.
99+
# Add ext4, vfat, and zram to /etc/mkinitcpio.conf MODULES.
100100
# Add ramroot to /etc/mkinitcpio.conf HOOKS.
101101
# Rebuild linux cpio boot image.
102102
ramroot_enable() {
@@ -211,6 +211,12 @@ ramroot_enable() {
211211
printf ":: ext4 added to mkinitcpio.conf MODULES\n"
212212
mkinitChange='true'
213213
fi
214+
# add vfat to initMODULES:
215+
if [[ ! "$initMODULES" =~ vfat ]]; then
216+
initMODULES="${initMODULES} vfat"
217+
printf ":: vfat added to mkinitcpio.conf MODULES\n"
218+
mkinitChange='true'
219+
fi
214220
# add ramroot to initHOOKS:
215221
if [[ ! "$initHOOKS" =~ ramroot ]]; then
216222
initHOOKS="${initHOOKS%udev*}udev ramroot${initHOOKS#*udev}"
@@ -269,6 +275,13 @@ ramroot_disable() {
269275
printf ":: ext4 removed from mkinitcpio.conf MODULES\n"
270276
mkinitChange='true'
271277
fi
278+
# remove vfat from initMODULES:
279+
if [[ "$initMODULES" =~ vfat ]]; then
280+
initMODULES=`echo "$initMODULES" | \
281+
sed -r 's/( vfat|vfat |vfat)//g'`
282+
printf ":: vfat removed from mkinitcpio.conf MODULES\n"
283+
mkinitChange='true'
284+
fi
272285
# remove ramroot from initHOOKS:
273286
if [[ "$initHOOKS" =~ ramroot ]]; then
274287
initHOOKS=`echo "$initHOOKS" | \

0 commit comments

Comments
 (0)